user32: Remove redundant SetLastError call from MENU_SetMenu.

This commit is contained in:
Dmitry Timoshkov 2006-06-12 00:26:49 +09:00 committed by Alexandre Julliard
parent 42a361d160
commit 099e23ce49

View file

@ -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 )))