Commit 099e23ce authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

user32: Remove redundant SetLastError call from MENU_SetMenu.

parent 42a361d1
...@@ -4043,7 +4043,6 @@ BOOL MENU_SetMenu( HWND hWnd, HMENU hMenu ) ...@@ -4043,7 +4043,6 @@ BOOL MENU_SetMenu( HWND hWnd, HMENU hMenu )
if (hMenu && !IsMenu(hMenu)) if (hMenu && !IsMenu(hMenu))
{ {
WARN("hMenu %p is not a menu handle\n", hMenu); WARN("hMenu %p is not a menu handle\n", hMenu);
SetLastError(ERROR_INVALID_MENU_HANDLE);
return FALSE; return FALSE;
} }
if (!WIN_ALLOWED_MENU(GetWindowLongW( hWnd, GWL_STYLE ))) if (!WIN_ALLOWED_MENU(GetWindowLongW( hWnd, GWL_STYLE )))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment