1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 03:51:48 +00:00
mpv/loader
sesse 8e19e87761 Fix semaphore behavior in WaitForSingleObject.
Two simple bugfixes for semaphores in WaitForSingleObject:

First, semaphore count should be decreased on loading the semaphore, not
increased. The case for duration=0 had this wrong (duration=-1 was fine).

Second, the code for duration=-1 forgot to set the return value, so it
would always return WAIT_FAILED.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30852 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 10:07:39 +00:00
..
dmo Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
dshow Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
qtx Add missing license headers to test programs for external libraries. 2010-02-03 08:32:35 +00:00
wine Add public function VideoForWindowsVersion() to the appropriate header file. 2010-02-21 23:33:03 +00:00
afl.c whitespace cosmetics: Remove all trailing whitespace. 2009-05-13 02:58:57 +00:00
com.h Remove extern "C" declarations from loader code. 2010-02-11 14:33:57 +00:00
debug.h Add MPLAYER_ prefix to multiple inclusion guards. 2008-02-23 14:50:55 +00:00
drv.c Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
drv.h Remove extern "C" declarations from loader code. 2010-02-11 14:33:57 +00:00
elfdll.c Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
ext.c Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
ext.h Get rid of pointless 'extern' keywords. 2008-12-03 23:01:03 +00:00
ldt_keeper.c Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
ldt_keeper.h Remove extern "C" declarations from loader code. 2010-02-11 14:33:57 +00:00
loader.h Remove extern "C" declarations from loader code. 2010-02-11 14:33:57 +00:00
module.c Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
pe_image.c whitespace cosmetics: Remove all trailing whitespace. 2009-05-13 02:58:57 +00:00
pe_resource.c whitespace cosmetics: Remove all trailing whitespace. 2009-05-13 02:58:57 +00:00
qt_comp.h Add MPLAYER_ prefix to multiple inclusion guards. 2008-02-23 14:50:55 +00:00
qt_fv.h Add missing header #includes to fix 'make checkheaders'. 2010-01-04 19:04:33 +00:00
registry.c Do not cast the results of malloc/calloc/realloc. 2010-02-26 15:01:37 +00:00
registry.h Remove extern "C" declarations from loader code. 2010-02-11 14:33:57 +00:00
resource.c whitespace cosmetics: Remove all trailing whitespace. 2009-05-13 02:58:57 +00:00
vfl.c cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
win32.c Fix semaphore behavior in WaitForSingleObject. 2010-03-06 10:07:39 +00:00
win32.h Remove disabled AVIFILE-specific preprocessor code. 2010-02-08 10:14:42 +00:00
wineacm.h Remove extern "C" declarations from loader code. 2010-02-11 14:33:57 +00:00
wrapper.h cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00
wrapper.S cosmetics: Remove pointless empty lines at EOF. 2010-02-20 21:02:49 +00:00