DeleteObject does not SetLastError on a null object.

svn path=/trunk/; revision=21009
This commit is contained in:
James Tabor 2006-01-24 06:01:58 +00:00
parent f5dca93577
commit 035f762b73

View file

@ -193,6 +193,9 @@ BOOL
STDCALL STDCALL
DeleteObject(HGDIOBJ hObject) DeleteObject(HGDIOBJ hObject)
{ {
/* From Wine: DeleteObject does not SetLastError() on a null object */
if(!hObject) return FALSE;
if (0 != ((DWORD) hObject & GDI_HANDLE_STOCK_MASK)) if (0 != ((DWORD) hObject & GDI_HANDLE_STOCK_MASK))
{ {
DPRINT1("Trying to delete system object 0x%x\n", hObject); DPRINT1("Trying to delete system object 0x%x\n", hObject);