projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab2b99c
)
[NtUser] - Fix empty list error and add a note.
author
James Tabor
<james.tabor@reactos.org>
Mon, 6 Aug 2012 05:04:15 +0000
(
05:04
+0000)
committer
James Tabor
<james.tabor@reactos.org>
Mon, 6 Aug 2012 05:04:15 +0000
(
05:04
+0000)
svn path=/trunk/; revision=57047
reactos/win32ss/user/ntuser/input.c
patch
|
blob
|
history
diff --git
a/reactos/win32ss/user/ntuser/input.c
b/reactos/win32ss/user/ntuser/input.c
index
d4c2ed1
..
a4201bb
100644
(file)
--- a/
reactos/win32ss/user/ntuser/input.c
+++ b/
reactos/win32ss/user/ntuser/input.c
@@
-429,6
+429,10
@@
UserAttachThreadInput(PTHREADINFO ptiFrom, PTHREADINFO ptiTo, BOOL fAttach)
ptiFrom->rpdesk != ptiTo->rpdesk)
return FALSE;
+ /* MSDN Note:
+ Keyboard and mouse events received by both threads are processed by the thread specifie
+ */
+
/* If Attach set, allocate and link. */
if (fAttach)
{
@@
-475,6
+479,7
@@
UserAttachThreadInput(PTHREADINFO ptiFrom, PTHREADINFO ptiTo, BOOL fAttach)
if (!pai) return FALSE;
if (paiprev) paiprev->paiNext = pai->paiNext;
+ else if (!pai->paiNext) gpai = NULL;
ExFreePoolWithTag(pai, USERTAG_ATTACHINFO);
ERR("Attach Free! ptiFrom 0x%p ptiTo 0x%p\n",ptiFrom,ptiTo);