ui/win32/toolkit.c

changeset 954
07c1effb2a31
parent 953
c98404829cd3
child 956
4cdfbfd2038d
--- a/ui/win32/toolkit.c	Sun Dec 07 10:02:27 2025 +0100
+++ b/ui/win32/toolkit.c	Sun Dec 07 10:41:04 2025 +0100
@@ -161,7 +161,7 @@
         case WM_SIZE: {
             int width  = LOWORD(lParam);
             int height = HIWORD(lParam);
-            if (widget->layout) {
+            if (widget && widget->layout) {
                 widget->layout(widget->layoutmanager, width, height);
             }
             break;

mercurial