[NTUSER] Add UserHMSetHandle macro (#6164)

This commit is contained in:
Thamatip Chitpong 2023-12-24 23:42:15 +07:00 committed by GitHub
parent 758fff284d
commit f74a2aac8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -228,6 +228,7 @@ typedef struct _PROCMARKHEAD
} PROCMARKHEAD, *PPROCMARKHEAD;
#define UserHMGetHandle(obj) ((obj)->head.h)
#define UserHMSetHandle(obj, handle) ((obj)->head.h = (handle))
/* Window Client Information structure */
struct _ETHREAD;

View file

@ -371,7 +371,7 @@ NtUserSetWinEventHook(
InsertTailList(&GlobalEvents->Events, &pEH->Chain);
GlobalEvents->Counts++;
UserHMGetHandle(pEH) = Handle;
UserHMSetHandle(pEH, Handle);
pEH->eventMin = eventMin;
pEH->eventMax = eventMax;
pEH->idProcess = idProcess; // These are cmp'ed

View file

@ -57,7 +57,7 @@ CreateTimer(VOID)
Ret = UserCreateObject(gHandleTable, NULL, NULL, &Handle, TYPE_TIMER, sizeof(TIMER));
if (Ret)
{
Ret->head.h = Handle;
UserHMSetHandle(Ret, Handle);
InsertTailList(&TimersListHead, &Ret->ptmrList);
}