mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
Copy correct number of bytes
svn path=/trunk/; revision=12850
This commit is contained in:
parent
5ccc6ee89d
commit
f31ecfbd4a
|
@ -1,5 +1,4 @@
|
|||
/* $Id: message.c,v 1.49 2004/12/30 02:32:26 navaraf Exp $
|
||||
*
|
||||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
* FILE: lib/user32/windows/message.c
|
||||
|
@ -2067,7 +2066,7 @@ RealMsgWaitForMultipleObjectsEx(
|
|||
return WAIT_FAILED;
|
||||
}
|
||||
|
||||
RtlCopyMemory(RealHandles, pHandles, nCount);
|
||||
RtlCopyMemory(RealHandles, pHandles, nCount * sizeof(HANDLE));
|
||||
RealHandles[nCount] = MessageQueueHandle;
|
||||
|
||||
Result = WaitForMultipleObjectsEx(nCount + 1, RealHandles,
|
||||
|
|
Loading…
Reference in a new issue