[ros-diffs] [jimtabor] 21008: I noticed GetObjectW in Wine is the same when a null object is used. It does not SetLastError.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Tue Jan 24 06:39:29 CET 2006


I noticed GetObjectW in Wine is the same when a null object is used. It
does not SetLastError.
Modified: trunk/reactos/subsys/win32k/objects/dc.c
  _____  

Modified: trunk/reactos/subsys/win32k/objects/dc.c
--- trunk/reactos/subsys/win32k/objects/dc.c	2006-01-24 05:23:52 UTC
(rev 21007)
+++ trunk/reactos/subsys/win32k/objects/dc.c	2006-01-24 05:39:17 UTC
(rev 21008)
@@ -1,3 +1,4 @@

+
 /*
  *  ReactOS W32 Subsystem
  *  Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
@@ -1788,6 +1789,9 @@
   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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060124/38c4bd3c/attachment.html


More information about the Ros-diffs mailing list