Don't change cwd with file dialogs

main
Sam Huang 2024-03-31 01:57:07 -07:00 committed by Sam Lantinga
parent 60cacc8277
commit a9cab01185
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ void windows_ShowFileDialog(void *ptr)
dialog.nMaxFileTitle = MAX_PATH; dialog.nMaxFileTitle = MAX_PATH;
dialog.lpstrInitialDir = *initfolder ? initfolder : NULL; dialog.lpstrInitialDir = *initfolder ? initfolder : NULL;
dialog.lpstrTitle = NULL; dialog.lpstrTitle = NULL;
dialog.Flags = flags | OFN_EXPLORER | OFN_HIDEREADONLY; dialog.Flags = flags | OFN_EXPLORER | OFN_HIDEREADONLY | OFN_NOCHANGEDIR;
dialog.nFileOffset = 0; dialog.nFileOffset = 0;
dialog.nFileExtension = 0; dialog.nFileExtension = 0;
dialog.lpstrDefExt = NULL; dialog.lpstrDefExt = NULL;