Nikolay Sivov : msvcp140: Added __crtCreateSemaphoreExW().

Alexandre Julliard julliard at winehq.org
Tue Aug 9 11:11:04 CDT 2016


Module: wine
Branch: master
Commit: fd10b07782998712a380bf3c8ea6a592f3edc37f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fd10b07782998712a380bf3c8ea6a592f3edc37f

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Aug  7 12:22:17 2016 +0300

msvcp140: Added __crtCreateSemaphoreExW().

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcp140/msvcp140.spec |  2 +-
 dlls/msvcp90/misc.c         | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dlls/msvcp140/msvcp140.spec b/dlls/msvcp140/msvcp140.spec
index 588551b..2a3e5a9 100644
--- a/dlls/msvcp140/msvcp140.spec
+++ b/dlls/msvcp140/msvcp140.spec
@@ -3758,7 +3758,7 @@
 @ stub __crtCompareStringEx
 @ cdecl __crtCompareStringW(long long wstr long wstr long) msvcrt.__crtCompareStringW
 @ cdecl __crtCreateEventExW(ptr wstr long long) MSVCP__crtCreateEventExW
-@ stub __crtCreateSemaphoreExW
+@ cdecl __crtCreateSemaphoreExW(ptr long long wstr long long) MSVCP__crtCreateSemaphoreExW
 @ stub __crtCreateSymbolicLinkW
 @ stub __crtCreateThreadpoolTimer
 @ stub __crtCreateThreadpoolWait
diff --git a/dlls/msvcp90/misc.c b/dlls/msvcp90/misc.c
index 758e449..418f42b 100644
--- a/dlls/msvcp90/misc.c
+++ b/dlls/msvcp90/misc.c
@@ -1140,6 +1140,18 @@ ULONGLONG CDECL MSVCP__crtGetTickCount64(void)
     return GetTickCount64();
 }
 
+/*********************************************************************
+ *  __crtCreateSemaphoreExW (MSVCP140.@)
+ */
+HANDLE CDECL MSVCP__crtCreateSemaphoreExW(
+        SECURITY_ATTRIBUTES *attribs, LONG initial_count, LONG max_count, LPCWSTR name,
+        DWORD flags, DWORD access)
+{
+    TRACE("(%p %d %d %s 0x%08x 0x%08x)\n", attribs, initial_count, max_count, debugstr_w(name),
+            flags, access);
+    return CreateSemaphoreExW(attribs, initial_count, max_count, name, flags, access);
+}
+
 void init_misc(void *base)
 {
 #ifdef __x86_64__




More information about the wine-cvs mailing list