mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WIN32K] Fix an ASSERT to ignore the upper 32 bits of a passed in GDI handle
This commit is contained in:
parent
490362cc67
commit
00cfa8aac2
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue