winemine: Native RegisterClassEx requires cbSize to be set.

Dylan Smith dylan.ah.smith at gmail.com
Fri Jun 18 16:42:23 CDT 2010


I'm preparing to fix RegisterClassEx[AW] after the code freeze, but it
makes sense to fix the caller code before the freeze. Wine will ignore
cbSize, and it will allow cross compiled modules to work on windows.
---
 programs/winemine/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/programs/winemine/main.c b/programs/winemine/main.c
index 582f2cb..e9e89ec 100644
--- a/programs/winemine/main.c
+++ b/programs/winemine/main.c
@@ -1015,6 +1015,7 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd
 
     LoadString( hInst, IDS_APPNAME, appname, sizeof(appname));
 
+    wc.cbSize = sizeof(wc);
     wc.style = 0;
     wc.lpfnWndProc = MainProc;
     wc.cbClsExtra = 0;
-- 
1.7.0.4




More information about the wine-patches mailing list