[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);