mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
I noticed GetObjectW in Wine is the same when a null object is used. It does not SetLastError.
svn path=/trunk/; revision=21008
This commit is contained in:
parent
78a1fa7053
commit
f5dca93577
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
/*
|
||||
* ReactOS W32 Subsystem
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
||||
|
@ -1788,6 +1789,9 @@ NtGdiGetObject(HANDLE handle, INT count, LPVOID buffer)
|
|||
LPVOID SafeBuf;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
/* From Wine: GetObject does not SetLastError() on a null object */
|
||||
if (!handle) return 0;
|
||||
|
||||
if (count <= 0)
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue