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:
James Tabor 2006-01-24 05:39:17 +00:00
parent 78a1fa7053
commit f5dca93577

View file

@ -1,3 +1,4 @@
/* /*
* ReactOS W32 Subsystem * ReactOS W32 Subsystem
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
@ -1788,6 +1789,9 @@ NtGdiGetObject(HANDLE handle, INT count, LPVOID buffer)
LPVOID SafeBuf; LPVOID SafeBuf;
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
/* From Wine: GetObject does not SetLastError() on a null object */
if (!handle) return 0;
if (count <= 0) if (count <= 0)
{ {
return 0; return 0;