Correctly set openfilename.lStructSize before calling
GetOpenFileName().
This commit is contained in:
parent
c30cefb2d5
commit
c8e3a50197
|
@ -533,7 +533,7 @@ void MACRO_FileOpen(void)
|
|||
|
||||
szPath[0]='\0';
|
||||
|
||||
openfilename.lStructSize = 0;
|
||||
openfilename.lStructSize = sizeof(OPENFILENAME);
|
||||
openfilename.hwndOwner = Globals.active_win->hMainWnd;
|
||||
openfilename.hInstance = Globals.hInstance;
|
||||
openfilename.lpstrFilter = szzFilter;
|
||||
|
|
Loading…
Reference in New Issue