mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
This time, apply the correct patch from Art Yerkes instead of an old one...
svn path=/trunk/; revision=5236
This commit is contained in:
parent
c522666b4e
commit
7e7e74b988
1 changed files with 10 additions and 4 deletions
|
@ -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.23 2003/07/23 17:00:55 gvg Exp $
|
||||
/* $Id: message.c,v 1.24 2003/07/24 05:51:26 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -443,16 +443,22 @@ NtUserPostThreadMessage(DWORD idThread,
|
|||
PW32THREAD pThread;
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = PsLookupThreadByThreadId(idThread,&peThread);
|
||||
Status = PsLookupThreadByThreadId((void *)idThread,&peThread);
|
||||
|
||||
if( Status == STATUS_SUCCESS ) {
|
||||
pThread = peThread->Win32Thread;
|
||||
if( !pThread || !pThread->MessageQueue )
|
||||
{
|
||||
ObDereferenceObject( peThread );
|
||||
return FALSE;
|
||||
}
|
||||
Mesg.hwnd = 0;
|
||||
Mesg.message = Msg;
|
||||
Mesg.wParam = wParam;
|
||||
Mesg.lParam = lParam;
|
||||
Message = MsqCreateMessage(&Mesg);
|
||||
MsqPostMessage(pThread->MessageQueue, Message);
|
||||
ObDereferenceObject( peThread );
|
||||
return TRUE;
|
||||
} else {
|
||||
SetLastNtError( Status );
|
||||
|
|
Loading…
Reference in a new issue