mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
DeleteObject does not SetLastError on a null object.
svn path=/trunk/; revision=21009
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user