[WIN32K:NTUSER]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 14 Aug 2014 07:46:59 +0000 (07:46 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 14 Aug 2014 07:46:59 +0000 (07:46 +0000)
- Assert that the thread's sent message queue matches change bits in UserDbgAssertThreadInfo. Suggested by Giannis.
CORE-7013

svn path=/trunk/; revision=63880

reactos/win32ss/user/ntuser/misc.c

index 4b64a13..40ec94d 100644 (file)
@@ -656,6 +656,8 @@ void UserDbgAssertThreadInfo(BOOL showCaller)
     ASSERT(pci->ulClientDelta == DesktopHeapGetUserDelta());
     if (pti->pcti && pci->pDeskInfo)
         ASSERT(pci->pClientThreadInfo == (PVOID)((ULONG_PTR)pti->pcti - pci->ulClientDelta));
+    if (pti->pcti && IsListEmpty(&pti->SentMessagesListHead))
+        ASSERT((pti->pcti->fsChangeBits & QS_SENDMESSAGE) == 0);
     if (pti->KeyboardLayout)
         ASSERT(pci->hKL == pti->KeyboardLayout->hkl);
     if(pti->rpdesk != NULL)