From c03f273941f71d4fa4c7a00574d9249a8b7732b9 Mon Sep 17 00:00:00 2001 From: BrandonSchaefer Date: Thu, 6 Nov 2014 12:20:57 -0800 Subject: [PATCH] Fix crash from test/sharing. --- src/mir_window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mir_window.c b/src/mir_window.c index e21f319a..5c11ee4a 100644 --- a/src/mir_window.c +++ b/src/mir_window.c @@ -440,7 +440,9 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height) { + if (width) *width = window->mir.width; + if (height) *height = window->mir.height; }