mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 23:43:15 +00:00
Fix segfault on early WM_GETMINMAXINFO
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user