Do not retrieve infoPtr twice in ToolbarWindowProc entry

Dmitry Timoshkov dmitry at baikal.ru
Mon Nov 1 05:17:50 CST 2004


Hello,

since in the toolbar code infoPtr is not passed around this is just
a cosmetic change.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Do not retrieve infoPtr twice in ToolbarWindowProc entry.

--- cvs/hq/wine/dlls/comctl32/toolbar.c	2004-10-26 10:30:23.000000000 +0900
+++ wine/dlls/comctl32/toolbar.c	2004-11-01 12:27:32.000000000 +0800
@@ -6625,7 +6625,7 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg,
     TRACE("hwnd=%p msg=%x wparam=%x lparam=%lx\n",
 	  hwnd, uMsg, /* SPY_GetMsgName(uMsg), */ wParam, lParam);
 
-    if (!TOOLBAR_GetInfoPtr(hwnd) && (uMsg != WM_NCCREATE))
+    if (!infoPtr && (uMsg != WM_NCCREATE))
 	return DefWindowProcW( hwnd, uMsg, wParam, lParam );
 
     switch (uMsg)






More information about the wine-patches mailing list