Hello!
File->Open doesn't work in Winhelp when it's compiled and run on Windows
2000. The reason is incorrect structure size passed to GetOpenFileName().
ChangeLog:
* programs/winhelp/macro.c:
correctly set openfilename.lStructSize before calling
GetOpenFileName()
--
Regards,
Pavel Roskin
--- programs/winhelp/macro.c
+++ programs/winhelp/macro.c
@@ -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;