mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
change the condition in NtGdiGetObject to if ((RetCount) && (count)) (patch by GreatLord)
svn path=/trunk/; revision=26381
This commit is contained in:
parent
0751108eaf
commit
2ac5f48e47
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue