[vlc-devel] [PATCH 2/3] Win32: use WaitForSingleObjectEx instead of WaitForSingleObject
Jean-Baptiste Kempf
jb at videolan.org
Tue Jan 8 11:42:48 CET 2013
---
src/win32/specific.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/win32/specific.c b/src/win32/specific.c
index 2ec409c..2772614 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -126,7 +126,7 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
hIPCHelper = _beginthreadex( NULL, 0, IPCHelperThread, p_helper,
0, NULL );
if( hIPCHelper )
- WaitForSingleObject( hIPCHelperReady, INFINITE );
+ WaitForSingleObjectEx( hIPCHelperReady, INFINITE, TRUE );
else
{
msg_Err( p_this, "one instance mode DISABLED "
@@ -147,7 +147,7 @@ void system_Configure( libvlc_int_t *p_this, int i_argc, const char *const ppsz_
HWND ipcwindow;
/* Wait until the 1st instance is initialized */
- WaitForSingleObject( hmutex, INFINITE );
+ WaitForSingleObjectEx( hmutex, INFINITE, TRUE );
/* Locate the window created by the IPC helper thread of the
* 1st instance */
--
1.8.1
More information about the vlc-devel
mailing list