mirror of
https://github.com/reactos/reactos.git
synced 2024-11-27 05:23:33 +08:00
[NTUSER] Add UserHMSetHandle macro (#6164)
This commit is contained in:
parent
758fff284d
commit
f74a2aac8c
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user