Commit in reactos/subsys/win32k/ntuser on MAIN
message.c+3-21.65 -> 1.66
fixed missing dereferencing of threads in PostThreadMessage()

reactos/subsys/win32k/ntuser
message.c 1.65 -> 1.66
diff -u -r1.65 -r1.66
--- message.c	14 May 2004 23:57:32 -0000	1.65
+++ message.c	16 May 2004 18:33:40 -0000	1.66
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: message.c,v 1.65 2004/05/14 23:57:32 weiden Exp $
+/* $Id: message.c,v 1.66 2004/05/16 18:33:40 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -1089,7 +1089,8 @@
     Status = CopyMsgToKernelMem(&KernelModeMsg, &UserModeMsg, MsgMemoryEntry);
     if (! NT_SUCCESS(Status))
       {
-        SetLastWin32Error(ERROR_INVALID_PARAMETER);
+        ObDereferenceObject( peThread );
+	SetLastWin32Error(ERROR_INVALID_PARAMETER);
         return FALSE;
       }
     MsqPostMessage(pThread->MessageQueue, &KernelModeMsg,
CVSspam 0.2.8