Skip to content

Commit b1257ce

Browse files
Doug-Lyonstkreuzer
andauthored
[NTGDI] Silence some debug log spam from GreGetObjectOwner when input parameter is NULL. (reactos#7606)
CORE-19962 Co-authored-by: Timo Kreuzer <[email protected]>
1 parent fcbcaa1 commit b1257ce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

win32ss/gdi/ntgdi/gdiobj.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,6 +1193,12 @@ GreGetObjectOwner(HGDIOBJ hobj)
11931193
{
11941194
ULONG ulIndex, ulOwner;
11951195

1196+
if (hobj == NULL)
1197+
{
1198+
DPRINT("GreGetObjectOwner: invalid NULL handle\n");
1199+
return GDI_OBJ_HMGR_RESTRICTED;
1200+
}
1201+
11961202
/* Get the handle index */
11971203
ulIndex = GDI_HANDLE_GET_INDEX(hobj);
11981204

0 commit comments

Comments
 (0)