mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 14:34:57 +08:00
[WIN32K] Fix an ASSERT to ignore the upper 32 bits of a passed in GDI handle
This commit is contained in:
@@ -526,7 +526,10 @@ ENTRY_ReferenceEntryByHandle(HGDIOBJ hobj, FLONG fl)
|
||||
|
||||
/* Integrity checks */
|
||||
ASSERT((pentry->FullUnique & 0x1f) == pentry->Objt);
|
||||
ASSERT(pentry->einfo.pobj && pentry->einfo.pobj->hHmgr == hobj);
|
||||
ASSERT(pentry->einfo.pobj != NULL);
|
||||
|
||||
/* Check if lower 32 bits match, the upper 32 bits are ignored */
|
||||
ASSERT(pentry->einfo.pobj->hHmgr == UlongToPtr(PtrToUlong(hobj)));
|
||||
|
||||
return pentry;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user