Fix return value of InitializeCriticalSectionAndSpinCount.

InitializeCriticalSectionAndSpinCount returns a nonzero value on success,
and some codecs (notably VP7) seemingly got confused when it didn't, if and
only if we tried to emulate NT or newer.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30913 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
sesse 2010-03-16 22:08:56 +00:00
parent e4905ab24f
commit f414a15b33
1 changed files with 2 additions and 1 deletions

View File

@ -1412,9 +1412,10 @@ static void WINAPI expInitializeCriticalSection(CRITICAL_SECTION* c)
return; return;
} }
static void WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin) static WIN_BOOL WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
{ {
expInitializeCriticalSection(c); expInitializeCriticalSection(c);
return 1;
} }
static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c) static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c)