mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 11:41:20 +00:00
user32: Remove redundant SetLastError call from MENU_SetMenu.
This commit is contained in:
parent
42a361d160
commit
099e23ce49
|
@ -4043,7 +4043,6 @@ BOOL MENU_SetMenu( HWND hWnd, HMENU hMenu )
|
|||
if (hMenu && !IsMenu(hMenu))
|
||||
{
|
||||
WARN("hMenu %p is not a menu handle\n", hMenu);
|
||||
SetLastError(ERROR_INVALID_MENU_HANDLE);
|
||||
return FALSE;
|
||||
}
|
||||
if (!WIN_ALLOWED_MENU(GetWindowLongW( hWnd, GWL_STYLE )))
|
||||
|
|
Loading…
Reference in a new issue