- 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;
} HEAD, *PHEAD;
typedef struct _THROBJHEAD
{
HEAD;
PW32THREADINFO pti;
} THROBJHEAD, *PTHROBJHEAD;
typedef struct _THRDESKHEAD
{
HANDLE h;
DWORD cLockObj;
PW32THREADINFO pti;
THROBJHEAD;
struct _DESKTOP *rpdesk;
PVOID pSelf;
} THRDESKHEAD, *PTHRDESKHEAD;

View file

@ -15,7 +15,7 @@ typedef struct tagHOOKTABLE
typedef struct tagEVENTHOOK
{
THRDESKHEAD head;
THROBJHEAD head;
LIST_ENTRY Chain; /* Event chain entry */
PETHREAD Thread; /* Thread owning the event */
UINT eventMin;

View file

@ -331,7 +331,6 @@ NtUserSetWinEventHook(
UserHMGetHandle(pEH) = Handle;
// pEH->head.pti =?
// pEH->head.rpdesk
if (Thread)
pEH->Thread = Thread;
else