diff --git a/src/win32_window.c b/src/win32_window.c index c96e097f..2f2db36e 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -560,6 +560,10 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, { int xoff, yoff; MINMAXINFO* mmi = (MINMAXINFO*) lParam; + + if (!window) + break; + getFullWindowSize(getWindowStyle(window), getWindowExStyle(window), 0, 0, &xoff, &yoff);