Winhelp File->Open portability issue

Pavel Roskin proski at gnu.org
Mon Sep 29 18:37:56 CDT 2003


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
-------------- next part --------------
--- 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;


More information about the wine-patches mailing list