diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index cecf83f5cb3baa67a6ad36d64662e339f5a33043..f8e29e1c9ee356664d97e4f973fa2a939d5c320f 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -2168,6 +2168,8 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_RBUTTONDOWN: case WM_RBUTTONUP: infoPtr = TOOLTIPS_GetInfoPtr(lpttsi->hwndToolTip); + if (!infoPtr) + break; nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd); TRACE("subclassed mouse message %04x\n", uMsg); @@ -2178,6 +2180,8 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_MOUSEMOVE: infoPtr = TOOLTIPS_GetInfoPtr (lpttsi->hwndToolTip); + if (!infoPtr) + break; nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd); TRACE("subclassed WM_MOUSEMOVE\n");