diff --git a/reactos/subsystems/win32/win32k/objects/dc.c b/reactos/subsystems/win32/win32k/objects/dc.c index 9e66dc919d0..7cd011e7b48 100644 --- a/reactos/subsystems/win32/win32k/objects/dc.c +++ b/reactos/subsystems/win32/win32k/objects/dc.c @@ -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)