Author: cwittich Date: Wed Apr 18 00:26:49 2007 New Revision: 26381
URL: http://svn.reactos.org/svn/reactos?rev=26381&view=rev Log: change the condition in NtGdiGetObject to if ((RetCount) && (count)) (patch by GreatLord)
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Wed Apr 18 00:26:49 2007 @@ -1841,7 +1841,7 @@ return Ret; }
- if (RetCount <= count) + if ((RetCount) && (count)) { SafeBuf = ExAllocatePoolWithTag(PagedPool, count, TAG_GDIOBJ); if(!SafeBuf)