Skip to content

Commit

Permalink
libui/windows: backport fix for #471
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Jun 25, 2019
1 parent 49b2f8d commit 58575f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libui_sdl/libui/windows/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
// not a menu
if (lParam != 0)
break;
if (HIWORD(wParam) != 0)
if (HIWORD(wParam) != 0 || LOWORD(wParam) <= IDCANCEL)
break;
runMenuEvent(LOWORD(wParam), uiWindow(w));
return 0;
Expand Down

0 comments on commit 58575f8

Please sign in to comment.