comctl32: cleanup
Dimitrie O. Paun
dpaun at rogers.com
Wed Nov 19 13:57:49 CST 2003
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.
More information about the wine-patches
mailing list