libui/windows: backport fix for #471

This commit is contained in:
Arisotura 2019-06-25 12:29:56 +02:00
parent 49b2f8d969
commit 58575f82b7

View File

@ -95,7 +95,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA
// not a menu // not a menu
if (lParam != 0) if (lParam != 0)
break; break;
if (HIWORD(wParam) != 0) if (HIWORD(wParam) != 0 || LOWORD(wParam) <= IDCANCEL)
break; break;
runMenuEvent(LOWORD(wParam), uiWindow(w)); runMenuEvent(LOWORD(wParam), uiWindow(w));
return 0; return 0;