diff --git a/src/osd/windows/debugwin.c b/src/osd/windows/debugwin.c index ba338e8f06f..e005a9d4b36 100644 --- a/src/osd/windows/debugwin.c +++ b/src/osd/windows/debugwin.c @@ -691,8 +691,9 @@ static LRESULT CALLBACK debugwin_window_proc(HWND wnd, UINT message, WPARAM wpar } // sizing: recompute child window locations + case WM_SIZE: case WM_SIZING: - if (info->recompute_children) + if (info->recompute_children != NULL) (*info->recompute_children)(info); InvalidateRect(wnd, NULL, FALSE); break;