change the condition in NtGdiGetObject to if ((RetCount) && (count)) (patch by GreatLord)

svn path=/trunk/; revision=26381
This commit is contained in:
Christoph von Wittich 2007-04-17 20:26:49 +00:00
parent 0751108eaf
commit 2ac5f48e47

View file

@ -1841,7 +1841,7 @@ NtGdiGetObject(HANDLE handle, INT count, LPVOID buffer)
return Ret;
}
if (RetCount <= count)
if ((RetCount) && (count))
{
SafeBuf = ExAllocatePoolWithTag(PagedPool, count, TAG_GDIOBJ);
if(!SafeBuf)