libui/windows: backport fix for #471

This commit is contained in:
Arisotura 2019-06-25 12:29:56 +02:00
parent 49b2f8d969
commit 58575f82b7
1 changed files with 1 additions and 1 deletions

View File

@ -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;