mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +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
|
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);
|
||||||
|
|
Loading…
Reference in a new issue