mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 19:12:58 +00:00
fixed missing dereferencing of threads in PostThreadMessage()
svn path=/trunk/; revision=9416
This commit is contained in:
parent
4bee3087ac
commit
192d918fb4
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1089,7 +1089,8 @@ NtUserPostThreadMessage(DWORD idThread,
|
||||||
Status = CopyMsgToKernelMem(&KernelModeMsg, &UserModeMsg, MsgMemoryEntry);
|
Status = CopyMsgToKernelMem(&KernelModeMsg, &UserModeMsg, MsgMemoryEntry);
|
||||||
if (! NT_SUCCESS(Status))
|
if (! NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
ObDereferenceObject( peThread );
|
||||||
|
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
MsqPostMessage(pThread->MessageQueue, &KernelModeMsg,
|
MsqPostMessage(pThread->MessageQueue, &KernelModeMsg,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue