From d66d39894cc361fc79e4182409103766fda7b5bb Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Mon, 25 Mar 2013 19:26:46 +0100 Subject: [PATCH] Some clean up to Win32 dialogs --- ogl_editor/src/windows/Dialogs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ogl_editor/src/windows/Dialogs.c b/ogl_editor/src/windows/Dialogs.c index 00dff3d..cf04a1b 100644 --- a/ogl_editor/src/windows/Dialogs.c +++ b/ogl_editor/src/windows/Dialogs.c @@ -13,7 +13,7 @@ int Dialog_open(wchar_t* path, int pathSize) ofn.lpstrFile = path; ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = pathSize; - ofn.lpstrFilter = L"All\0*.*\0Rocket\0*.Rocket\0"; + ofn.lpstrFilter = L"All Files\0*.*\0Rocket\0*.Rocket\0"; ofn.nFilterIndex = 1; ofn.lpstrFileTitle = NULL; ofn.nMaxFileTitle = 0; @@ -25,13 +25,12 @@ int Dialog_open(wchar_t* path, int pathSize) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -int Dialog_save(wchar_t* path, int pathSize) +int Dialog_save(wchar_t* path) { OPENFILENAME dialog; - (void)pathSize; ZeroMemory(&dialog, sizeof(dialog)); dialog.lStructSize = sizeof(dialog); - dialog.lpstrFilter = L"*All Files (*.*)\0*.*\0"; + dialog.lpstrFilter = L"All Files (*.*)\0*.*\0"; dialog.lpstrFile = path; dialog.nMaxFile = MAX_PATH; dialog.Flags = OFN_EXPLORER | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT;