diff options
author | Arisotura <thetotalworm@gmail.com> | 2019-06-25 12:29:56 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2019-06-25 12:29:56 +0200 |
commit | 58575f82b7453c16616333e043651a57ea713eb6 (patch) | |
tree | b2f3129ce446f1b2fb4002839ec10142dcfc4d18 /src/libui_sdl/libui/windows/window.cpp | |
parent | 49b2f8d9694d7f91ad4d735a95044dee6828aec9 (diff) |
libui/windows: backport fix for #471
Diffstat (limited to 'src/libui_sdl/libui/windows/window.cpp')
-rw-r--r-- | src/libui_sdl/libui/windows/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/windows/window.cpp b/src/libui_sdl/libui/windows/window.cpp index 18d1171..a8f7f23 100644 --- a/src/libui_sdl/libui/windows/window.cpp +++ b/src/libui_sdl/libui/windows/window.cpp @@ -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; |