Commit 5f4c9a00 authored by Alexandre Julliard's avatar Alexandre Julliard

Patrick Yang (Corel)

infoPtr sometimes can be NULL.
parent 7324295b
...@@ -2168,6 +2168,8 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -2168,6 +2168,8 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_RBUTTONDOWN: case WM_RBUTTONDOWN:
case WM_RBUTTONUP: case WM_RBUTTONUP:
infoPtr = TOOLTIPS_GetInfoPtr(lpttsi->hwndToolTip); infoPtr = TOOLTIPS_GetInfoPtr(lpttsi->hwndToolTip);
if (!infoPtr)
break;
nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd); nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd);
TRACE("subclassed mouse message %04x\n", uMsg); TRACE("subclassed mouse message %04x\n", uMsg);
...@@ -2178,6 +2180,8 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -2178,6 +2180,8 @@ TOOLTIPS_SubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_MOUSEMOVE: case WM_MOUSEMOVE:
infoPtr = TOOLTIPS_GetInfoPtr (lpttsi->hwndToolTip); infoPtr = TOOLTIPS_GetInfoPtr (lpttsi->hwndToolTip);
if (!infoPtr)
break;
nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd); nTool = TOOLTIPS_GetToolFromMessage (infoPtr, hwnd);
TRACE("subclassed WM_MOUSEMOVE\n"); TRACE("subclassed WM_MOUSEMOVE\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment