I use GetOpenFileName on Windows and GTK’s file chooser dialog on Ubuntu. But since I switched to SDL (2) GetOpenFileName and GetSaveFileName don’t pop up at all. What do I do? CommDlgExtendedError is returning 77072158.
I see the problem now. Since I moved my dialog box code to a function and pass the filepath char array as a pointer,
ofn.nMaxFile = sizeof( filepath );
doesn’t set the correct max length. I fixed it now and it works.