Fix segfault on early WM_GETMINMAXINFO

This commit is contained in:
Camilla Berglund 2015-10-18 18:50:38 +02:00
parent 9dd3b8101a
commit a94a84b507

View File

@ -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);