changeset 30871:24a1c1f79296

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.
author sesse
date Tue, 16 Mar 2010 22:08:56 +0000
parents fc34860b15f1
children eb1b97313903
files loader/win32.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Tue Mar 16 14:35:43 2010 +0000
+++ b/loader/win32.c	Tue Mar 16 22:08:56 2010 +0000
@@ -1412,9 +1412,10 @@
     return;
 }
 
-static void WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
+static WIN_BOOL WINAPI expInitializeCriticalSectionAndSpinCount(CRITICAL_SECTION* c, DWORD spin)
 {
     expInitializeCriticalSection(c);
+    return 1;
 }
 
 static void WINAPI expEnterCriticalSection(CRITICAL_SECTION* c)