Mark the DispatchingListEntry as removed (in MsqSendMessage).
Modified: trunk/reactos/subsys/win32k/ntuser/msgqueue.c

Modified: trunk/reactos/subsys/win32k/ntuser/msgqueue.c
--- trunk/reactos/subsys/win32k/ntuser/msgqueue.c	2005-07-14 20:51:39 UTC (rev 16567)
+++ trunk/reactos/subsys/win32k/ntuser/msgqueue.c	2005-07-14 21:07:14 UTC (rev 16568)
@@ -1117,6 +1117,7 @@
 		Message->CompletionEvent = NULL;
                 Message->Result = NULL;
                 RemoveEntryList(&Message->DispatchingListEntry);
+                Message->DispatchingListEntry.Flink = NULL;
                 break;
               }
             Entry = Entry->Flink;
@@ -1174,6 +1175,7 @@
 		    Message->CompletionEvent = NULL;
                     Message->Result = NULL;
                     RemoveEntryList(&Message->DispatchingListEntry);
+                    Message->DispatchingListEntry.Flink = NULL;
                     break;
                   }
                 Entry = Entry->Flink;