Misc. Fixes

Dimitrie O. Paun dimi at cs.toronto.edu
Mon Jan 28 00:16:41 CST 2002


[extracted from office2.diff]

ChangeLog:
  Misc. fixes for the common controls (by Codeweavers)
    -- fix order of parameters is SendNotify
    -- always the dlg cntrl ID of the sender.

--
Dimi.
-------------- next part --------------
Index: dlls/comctl32/comctl32undoc.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/comctl32undoc.c,v
retrieving revision 1.57
diff -u -r1.57 comctl32undoc.c
--- dlls/comctl32/comctl32undoc.c	18 Jan 2002 19:04:39 -0000	1.57
+++ dlls/comctl32/comctl32undoc.c	28 Jan 2002 05:02:39 -0000
@@ -2304,8 +2304,9 @@
 	    HWND hwndParent = GetParent (lpNotify->hwndFrom);
 	    if (hwndParent) {
 		hwndParent = GetWindow (lpNotify->hwndFrom, GW_OWNER);
-		if (hwndParent)
-		    idFrom = GetDlgCtrlID (lpNotify->hwndFrom);
+		/* the following is done even if the return from above
+		 * is zero.  GLA 12/2001 */
+		idFrom = GetDlgCtrlID (lpNotify->hwndFrom);
 	    }
 	}
 
@@ -2324,8 +2325,8 @@
  * SendNotify [COMCTL32.341]
  *
  * PARAMS
- *     hwndFrom [I]
  *     hwndTo   [I]
+ *     hwndFrom [I]
  *     uCode    [I]
  *     lpHdr    [I]
  *
@@ -2335,13 +2336,13 @@
  */
 
 LRESULT WINAPI
-COMCTL32_SendNotify (HWND hwndFrom, HWND hwndTo,
+COMCTL32_SendNotify (HWND hwndTo, HWND hwndFrom,
 		     UINT uCode, LPNMHDR lpHdr)
 {
     NOTIFYDATA notify;
 
     TRACE("(0x%04x 0x%04x %d %p)\n",
-	   hwndFrom, hwndTo, uCode, lpHdr);
+	   hwndTo, hwndFrom, uCode, lpHdr);
 
     notify.hwndFrom = hwndFrom;
     notify.hwndTo   = hwndTo;


More information about the wine-patches mailing list