mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Patrick Yang (Corel)
infoPtr sometimes can be NULL.
This commit is contained in:
parent
7324295be8
commit
5f4c9a0023
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user