[NTGDI] Silence some debug log spam from GreGetObjectOwner when input parameter is NULL. (#7606)

CORE-19962
Co-authored-by: Timo Kreuzer <timo.kreuzer@reactos.org>
This commit is contained in:
Doug Lyons
2025-01-16 19:11:19 -06:00
committed by GitHub
parent fcbcaa10a7
commit b1257cefe1

View File

@@ -1193,6 +1193,12 @@ GreGetObjectOwner(HGDIOBJ hobj)
{
ULONG ulIndex, ulOwner;
if (hobj == NULL)
{
DPRINT("GreGetObjectOwner: invalid NULL handle\n");
return GDI_OBJ_HMGR_RESTRICTED;
}
/* Get the handle index */
ulIndex = GDI_HANDLE_GET_INDEX(hobj);