PATCH: createwindow small unicode prob

Marcus Meissner marcus at jet.franken.de
Fri Jul 13 00:34:28 CDT 2001


Hi,

Ciao, Marcus

Changelog:
	WM_NCCREATE has a A/W struct, so check unicode flag for which call
	to use.

Index: window.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/window.c,v
retrieving revision 1.15
diff -u -r1.15 window.c
--- window.c	2001/07/12 22:27:56	1.15
+++ window.c	2001/07/13 06:22:27
@@ -853,7 +854,10 @@
 
     if (!wndPtr->parent)
     {
-        SendMessageW( hwnd, WM_NCCREATE, 0, (LPARAM)cs );
+	if (unicode)
+	    SendMessageW( hwnd, WM_NCCREATE, 0, (LPARAM)cs );
+	else
+	    SendMessageA( hwnd, WM_NCCREATE, 0, (LPARAM)cs );
         create_desktop( display, wndPtr );
         WIN_ReleaseWndPtr( wndPtr );
         return TRUE;




More information about the wine-patches mailing list