mirror of https://github.com/libsdl-org/SDL.git
Check nullptr before calling the windows message hook for WM_ENTERSIZEMOVE and WM_ENTERMENULOOP
This commit is contained in:
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_ENTERMENULOOP:
|
||||
{
|
||||
if (!DispatchModalLoopMessageHook(&hwnd, &msg, &wParam, &lParam)) {
|
||||
return 0;
|
||||
if (g_WindowsMessageHook) {
|
||||
if (!DispatchModalLoopMessageHook(&hwnd, &msg, &wParam, &lParam)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
++data->in_modal_loop;
|
||||
|
|
|
|||
Loading…
Reference in New Issue