comctl32: cleanup

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

 



ChangeLog
    Remove some dead code: hwndParent is not used anywhere.

Index: dlls/comctl32/comctl32undoc.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/comctl32undoc.c,v
retrieving revision 1.85
diff -u -r1.85 comctl32undoc.c
--- dlls/comctl32/comctl32undoc.c	17 Sep 2003 22:42:04 -0000	1.85
+++ dlls/comctl32/comctl32undoc.c	3 Nov 2003 17:50:08 -0000
@@ -2303,15 +2303,8 @@
 	idFrom = lpHdr->idFrom;
     }
     else {
-	if (lpNotify->hwndFrom) {
-	    HWND hwndParent = GetParent (lpNotify->hwndFrom);
-	    if (hwndParent) {
-		hwndParent = GetWindow (lpNotify->hwndFrom, GW_OWNER);
-		/* the following is done even if the return from above
-		 * is zero.  GLA 12/2001 */
-		idFrom = GetDlgCtrlID (lpNotify->hwndFrom);
-	    }
-	}
+	if (lpNotify->hwndFrom)
+	    idFrom = GetDlgCtrlID (lpNotify->hwndFrom);
 
 	lpNmh = (lpHdr) ? lpHdr : &nmhdr;
 

-- 
Dimi.



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

  Powered by Linux