Check nullptr before calling the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP
This commit is contained in:
committed by
Sam Lantinga
parent
e7f326a84e
commit
eb5ab22032
@@ -1721,8 +1721,10 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|||||||
case WM_ENTERSIZEMOVE:
|
case WM_ENTERSIZEMOVE:
|
||||||
case WM_ENTERMENULOOP:
|
case WM_ENTERMENULOOP:
|
||||||
{
|
{
|
||||||
if (!DispatchModalLoopMessageHook(&hwnd, &msg, &wParam, &lParam)) {
|
if (g_WindowsMessageHook) {
|
||||||
return 0;
|
if (!DispatchModalLoopMessageHook(&hwnd, &msg, &wParam, &lParam)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
++data->in_modal_loop;
|
++data->in_modal_loop;
|
||||||
|
|||||||
Reference in New Issue
Block a user