winfile fails in windowcreateex
Alexandre Julliard
julliard at winehq.org
Wed Dec 10 13:33:04 CST 2003
Rein Klazes <rklazes at xs4all.nl> writes:
> I did not look at it myself, but maybe this is enough for a clue?
Yep, it's all my fault. This should fix it:
Index: windows/win.c
===================================================================
RCS file: /opt/cvs-commit/wine/windows/win.c,v
retrieving revision 1.229
diff -u -p -r1.229 win.c
--- windows/win.c 10 Dec 2003 04:08:06 -0000 1.229
+++ windows/win.c 10 Dec 2003 19:19:28 -0000
@@ -81,6 +81,8 @@ static WND *create_window_handle( HWND p
if (!(win = HeapAlloc( GetProcessHeap(), 0, sizeof(WND) + extra_bytes - sizeof(win->wExtra) )))
return NULL;
+ if (type == WIN_PROC_16) instance = HINSTANCE_32(GetExePtr(HINSTANCE_16(instance)));
+
USER_Lock();
SERVER_START_REQ( create_window )
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list