From a94a84b507b0d6d11e8a3f257cb21f4bd6553516 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 18 Oct 2015 18:50:38 +0200 Subject: [PATCH] Fix segfault on early WM_GETMINMAXINFO --- src/win32_window.c | 4 ++++ 1 file changed, 4 insertions(+) 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);