diff --git a/reactos/win32ss/user/ntuser/menu.c b/reactos/win32ss/user/ntuser/menu.c index bbdf8099895..2d3ee0ef386 100644 --- a/reactos/win32ss/user/ntuser/menu.c +++ b/reactos/win32ss/user/ntuser/menu.c @@ -6045,6 +6045,41 @@ CLEANUP: } +DWORD +APIENTRY +NtUserPaintMenuBar( + HWND hWnd, + HDC hDC, + ULONG left, + ULONG right, + ULONG top, + BOOL bActive) +{ + PWND Window; + RECT Rect; + + UserEnterExclusive(); + + if(!(Window = UserGetWindowObject(hWnd))) + { + EngSetLastError(ERROR_INVALID_WINDOW_HANDLE); + UserLeave(); + return 0; + } + + Rect.left = left; + Rect.right = right; + Rect.top = top; + Rect.bottom = 0; + + MENU_DrawMenuBar(hDC, &Rect, Window, FALSE); + + UserLeave(); + + /* I am not sure about what this function returns */ + return 0; +} + /* * @implemented */ diff --git a/reactos/win32ss/user/ntuser/ntstubs.c b/reactos/win32ss/user/ntuser/ntstubs.c index 7716c83191c..51476fe9a2b 100644 --- a/reactos/win32ss/user/ntuser/ntstubs.c +++ b/reactos/win32ss/user/ntuser/ntstubs.c @@ -876,21 +876,6 @@ NtUserCalcMenuBar( return 0; } -DWORD -APIENTRY -NtUserPaintMenuBar( - HWND hWnd, - HDC hDC, - ULONG left, - ULONG right, - ULONG top, - BOOL bActive) -{ - STUB; - return 0; -} - - DWORD APIENTRY NtUserRemoteConnect(