diff --git a/reactos/dll/win32/user32/windows/menu.c b/reactos/dll/win32/user32/windows/menu.c index 117dbbce470..86ff286aabf 100644 --- a/reactos/dll/win32/user32/windows/menu.c +++ b/reactos/dll/win32/user32/windows/menu.c @@ -1035,6 +1035,7 @@ PopupMenuWndProcA(HWND Wnd, UINT Message, WPARAM wParam, LPARAM lParam) break; case MM_GETMENUHANDLE: + case MN_GETHMENU: return GetWindowLongPtrA(Wnd, 0); default: @@ -1106,6 +1107,7 @@ PopupMenuWndProcW(HWND Wnd, UINT Message, WPARAM wParam, LPARAM lParam) break; case MM_GETMENUHANDLE: + case MN_GETHMENU: return GetWindowLongPtrW(Wnd, 0); default: diff --git a/reactos/include/psdk/winuser.h b/reactos/include/psdk/winuser.h index f7ec388b6b3..aacf4fa4880 100644 --- a/reactos/include/psdk/winuser.h +++ b/reactos/include/psdk/winuser.h @@ -1712,6 +1712,7 @@ extern "C" { #define WM_CTLCOLORDLG 310 #define WM_CTLCOLORSCROLLBAR 311 #define WM_CTLCOLORSTATIC 312 +#define MN_GETHMENU 481 #define WM_MOUSEFIRST 512 #define WM_MOUSEMOVE 512 #define WM_LBUTTONDOWN 513