- Use correct head structure for event hooks.

svn path=/trunk/; revision=42727
This commit is contained in:
James Tabor 2009-08-16 06:41:18 +00:00
parent 7b35054d70
commit 977596b2e5
3 changed files with 8 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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