Author: jimtabor
Date: Mon Aug 6 05:04:15 2012
New Revision: 57047
URL:
http://svn.reactos.org/svn/reactos?rev=57047&view=rev
Log:
[NtUser] - Fix empty list error and add a note.
Modified:
trunk/reactos/win32ss/user/ntuser/input.c
Modified: trunk/reactos/win32ss/user/ntuser/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/input.…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/input.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/input.c [iso-8859-1] Mon Aug 6 05:04:15 2012
@@ -429,6 +429,10 @@
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 @@
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);