[vlc-commits] WinCE: another compile fix
Rémi Denis-Courmont
git at videolan.org
Sat Aug 6 12:50:07 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 6 13:49:59 2011 +0300| [434aeeb1ad33e94e8e9b7ade5ce1c581c779735e] | committer: Rémi Denis-Courmont
WinCE: another compile fix
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=434aeeb1ad33e94e8e9b7ade5ce1c581c779735e
---
src/win32/thread.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index bf70d84..0623619 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -104,11 +104,11 @@ static DWORD vlc_WaitForMultipleObjects (DWORD count, const HANDLE *handles,
buf[count++] = th->cancel_event;
handles = buf;
}
+
if (count == 0)
{
- ret = Sleep (delay);
- if (ret == 0)
- ret = WAIT_TIMEOUT;
+ Sleep (delay);
+ ret = WAIT_TIMEOUT;
}
else
ret = WaitForMultipleObjects (count, handles, FALSE, delay);
More information about the vlc-commits
mailing list