From e3c5c7d03d732ddbd771362d7e5298bcdad74500 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 5 Aug 2016 12:31:28 +0200 Subject: [PATCH] msvcp140: Added __crtInitializeCriticalSectionEx(). Signed-off-by: Nikolay Sivov Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/msvcp140/msvcp140.spec | 2 +- dlls/msvcp90/misc.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/msvcp140/msvcp140.spec b/dlls/msvcp140/msvcp140.spec index 1e8f85fe216..922aa9ea6f5 100644 --- a/dlls/msvcp140/msvcp140.spec +++ b/dlls/msvcp140/msvcp140.spec @@ -3770,7 +3770,7 @@ @ stub __crtGetSystemTimePreciseAsFileTime @ stub __crtGetTickCount64 @ stub __crtInitOnceExecuteOnce -@ stub __crtInitializeCriticalSectionEx +@ cdecl __crtInitializeCriticalSectionEx(ptr long long) MSVCP__crtInitializeCriticalSectionEx @ stub __crtIsPackagedApp @ cdecl __crtLCMapStringA(long long str long ptr long long long) msvcrt.__crtLCMapStringA @ stub __crtLCMapStringEx diff --git a/dlls/msvcp90/misc.c b/dlls/msvcp90/misc.c index 81a5fbb7d87..2037e699d3c 100644 --- a/dlls/msvcp90/misc.c +++ b/dlls/msvcp90/misc.c @@ -1066,6 +1066,16 @@ void __asm_dummy_vtables(void) { } #endif +/********************************************************************* + * __crtInitializeCriticalSectionEx (MSVCP140.@) + */ +BOOL CDECL MSVCP__crtInitializeCriticalSectionEx( + CRITICAL_SECTION *cs, DWORD spin_count, DWORD flags) +{ + TRACE("(%p %x %x)\n", cs, spin_count, flags); + return InitializeCriticalSectionEx(cs, spin_count, flags); +} + void init_misc(void *base) { #ifdef __x86_64__