mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
DeleteObject does not SetLastError on a null object.
svn path=/trunk/; revision=21009
This commit is contained in:
parent
f5dca93577
commit
035f762b73
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ BOOL
|
|||
STDCALL
|
||||
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))
|
||||
{
|
||||
DPRINT1("Trying to delete system object 0x%x\n", hObject);
|
||||
|
|
Loading…
Reference in a new issue