Winhelp File->Open portability issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux