Re: TreeView notifications fix (take 2)

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

 



As per Dimis suggestion, here is a more streamlined version of the
patch.

ChangeLog:

- Make IsWindowUnicode check dialog wndprocs

-- 
Mike Hearn <m.hearn@signal.qinetiq.com>
QinetiQ - Malvern Technology Center
Index: windows/win.c
===================================================================
RCS file: /home/wine/wine/windows/win.c,v
retrieving revision 1.216
diff -u -r1.216 win.c
--- windows/win.c	14 Mar 2003 04:11:17 -0000	1.216
+++ windows/win.c	19 Mar 2003 13:58:51 -0000
@@ -1742,9 +1752,11 @@
 {
     WND * wndPtr;
     BOOL retvalue;
-
+    
     if (!(wndPtr = WIN_FindWndPtr(hwnd))) return FALSE;
-    retvalue = (WINPROC_GetProcType( wndPtr->winproc ) == WIN_PROC_32W);
+    /* dialog boxes store their window proc in a different location, so check where we should look here */
+    WNDPROC wndproc = wndPtr->flags & WIN_ISDIALOG ? *(WNDPROC *)(((char *)wndPtr->wExtra) + DWL_DLGPROC) : wndPtr->winproc;
+    retvalue = (WINPROC_GetProcType( wndproc ) == WIN_PROC_32W);
     WIN_ReleaseWndPtr(wndPtr);
     return retvalue;
 }

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

  Powered by Linux