diff --git a/reactos/lib/user32/misc/stubs.c b/reactos/lib/user32/misc/stubs.c index 1c27055178b..3e82f81e5f2 100644 --- a/reactos/lib/user32/misc/stubs.c +++ b/reactos/lib/user32/misc/stubs.c @@ -1,4 +1,4 @@ -/* $Id: stubs.c,v 1.71 2004/12/25 22:59:10 navaraf Exp $ +/* $Id: stubs.c,v 1.72 2004/12/27 16:48:29 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -109,23 +109,6 @@ LockWorkStation(VOID) } -/* - * @unimplemented - */ -DWORD -STDCALL -MsgWaitForMultipleObjects( - DWORD nCount, - CONST HANDLE *pHandles, - BOOL fWaitAll, - DWORD dwMilliseconds, - DWORD dwWakeMask) -{ - UNIMPLEMENTED; - return 0; -} - - /* * @unimplemented */ diff --git a/reactos/lib/user32/windows/message.c b/reactos/lib/user32/windows/message.c index e45fd7c679e..8fc80d56c4c 100644 --- a/reactos/lib/user32/windows/message.c +++ b/reactos/lib/user32/windows/message.c @@ -1,4 +1,4 @@ -/* $Id: message.c,v 1.47 2004/12/25 22:59:10 navaraf Exp $ +/* $Id: message.c,v 1.48 2004/12/27 16:48:29 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -2075,11 +2075,36 @@ RealMsgWaitForMultipleObjectsEx( return Result; } -DWORD WINAPI MsgWaitForMultipleObjectsEx(DWORD nCount, CONST HANDLE *lpHandles, DWORD dwMilliseconds, DWORD dwWakeMask, DWORD dwFlags) +/* + * @implemented + */ +DWORD WINAPI +MsgWaitForMultipleObjectsEx( + DWORD nCount, + CONST HANDLE *lpHandles, + DWORD dwMilliseconds, + DWORD dwWakeMask, + DWORD dwFlags) { - return IsInsideMessagePumpHook() ? gmph.RealMsgWaitForMultipleObjectsEx(nCount, lpHandles, dwMilliseconds, dwWakeMask, dwFlags) : RealMsgWaitForMultipleObjectsEx(nCount, lpHandles,dwMilliseconds, dwWakeMask, dwFlags); + return IsInsideMessagePumpHook() ? gmph.RealMsgWaitForMultipleObjectsEx(nCount, lpHandles, dwMilliseconds, dwWakeMask, dwFlags) : RealMsgWaitForMultipleObjectsEx(nCount, lpHandles,dwMilliseconds, dwWakeMask, dwFlags); } +/* + * @implemented + */ +DWORD STDCALL +MsgWaitForMultipleObjects( + DWORD nCount, + CONST HANDLE *lpHandles, + BOOL fWaitAll, + DWORD dwMilliseconds, + DWORD dwWakeMask) +{ + return MsgWaitForMultipleObjectsEx(nCount, lpHandles, dwMilliseconds, + dwWakeMask, fWaitAll ? MWMO_WAITALL : 0); +} + + BOOL FASTCALL MessageInit() { InitializeCriticalSection(&DdeCrst);