Remove redundant SetLastError call from MENU_SetMenu
Dmitry Timoshkov
dmitry at codeweavers.com
Sun Jun 11 10:26:49 CDT 2006
Hello,
IsMenu now sets last error in the case of an invalid menu handle.
Changelog:
Remove redundant SetLastError call from MENU_SetMenu.
--- cvs/hq/wine/dlls/user/menu.c Sat Jun 10 03:37:04 2006
+++ wine/dlls/user/menu.c Sun Jun 11 15:22:46 2006
@@ -4043,7 +4043,6 @@ BOOL MENU_SetMenu( HWND hWnd, HMENU hMen
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 )))
More information about the wine-patches
mailing list