mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +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
1 changed files with 1 additions and 1 deletions
|
@ -1841,7 +1841,7 @@ NtGdiGetObject(HANDLE handle, INT count, LPVOID buffer)
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RetCount <= count)
|
if ((RetCount) && (count))
|
||||||
{
|
{
|
||||||
SafeBuf = ExAllocatePoolWithTag(PagedPool, count, TAG_GDIOBJ);
|
SafeBuf = ExAllocatePoolWithTag(PagedPool, count, TAG_GDIOBJ);
|
||||||
if(!SafeBuf)
|
if(!SafeBuf)
|
||||||
|
|
Loading…
Reference in a new issue