mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
- Use correct head structure for event hooks.
svn path=/trunk/; revision=42727
This commit is contained in:
parent
7b35054d70
commit
977596b2e5
|
@ -85,11 +85,15 @@ typedef struct _HEAD
|
||||||
DWORD cLockObj;
|
DWORD cLockObj;
|
||||||
} HEAD, *PHEAD;
|
} HEAD, *PHEAD;
|
||||||
|
|
||||||
|
typedef struct _THROBJHEAD
|
||||||
|
{
|
||||||
|
HEAD;
|
||||||
|
PW32THREADINFO pti;
|
||||||
|
} THROBJHEAD, *PTHROBJHEAD;
|
||||||
|
|
||||||
typedef struct _THRDESKHEAD
|
typedef struct _THRDESKHEAD
|
||||||
{
|
{
|
||||||
HANDLE h;
|
THROBJHEAD;
|
||||||
DWORD cLockObj;
|
|
||||||
PW32THREADINFO pti;
|
|
||||||
struct _DESKTOP *rpdesk;
|
struct _DESKTOP *rpdesk;
|
||||||
PVOID pSelf;
|
PVOID pSelf;
|
||||||
} THRDESKHEAD, *PTHRDESKHEAD;
|
} THRDESKHEAD, *PTHRDESKHEAD;
|
||||||
|
|
|
@ -15,7 +15,7 @@ typedef struct tagHOOKTABLE
|
||||||
|
|
||||||
typedef struct tagEVENTHOOK
|
typedef struct tagEVENTHOOK
|
||||||
{
|
{
|
||||||
THRDESKHEAD head;
|
THROBJHEAD head;
|
||||||
LIST_ENTRY Chain; /* Event chain entry */
|
LIST_ENTRY Chain; /* Event chain entry */
|
||||||
PETHREAD Thread; /* Thread owning the event */
|
PETHREAD Thread; /* Thread owning the event */
|
||||||
UINT eventMin;
|
UINT eventMin;
|
||||||
|
|
|
@ -331,7 +331,6 @@ NtUserSetWinEventHook(
|
||||||
|
|
||||||
UserHMGetHandle(pEH) = Handle;
|
UserHMGetHandle(pEH) = Handle;
|
||||||
// pEH->head.pti =?
|
// pEH->head.pti =?
|
||||||
// pEH->head.rpdesk
|
|
||||||
if (Thread)
|
if (Thread)
|
||||||
pEH->Thread = Thread;
|
pEH->Thread = Thread;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue