mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTUSER] Add UserHMSetHandle macro (#6164)
This commit is contained in:
parent
758fff284d
commit
f74a2aac8c
3 changed files with 3 additions and 2 deletions
|
@ -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 a new issue