[PATCH 1/3] msvcp140: Added __crtCreateEventExW()

Nikolay Sivov nsivov at codeweavers.com
Sun Aug 7 04:22:15 CDT 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 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 922aa9e..cc5f94e 100644
--- a/dlls/msvcp140/msvcp140.spec
+++ b/dlls/msvcp140/msvcp140.spec
@@ -3757,7 +3757,7 @@
 @ cdecl __crtCompareStringA(long long str long str long) msvcrt.__crtCompareStringA
 @ stub __crtCompareStringEx
 @ cdecl __crtCompareStringW(long long wstr long wstr long) msvcrt.__crtCompareStringW
-@ stub __crtCreateEventExW
+@ cdecl __crtCreateEventExW(ptr wstr long long) MSVCP__crtCreateEventExW
 @ stub __crtCreateSemaphoreExW
 @ stub __crtCreateSymbolicLinkW
 @ stub __crtCreateThreadpoolTimer
diff --git a/dlls/msvcp90/misc.c b/dlls/msvcp90/misc.c
index 2037e69..d5e9280 100644
--- a/dlls/msvcp90/misc.c
+++ b/dlls/msvcp90/misc.c
@@ -1076,6 +1076,16 @@ BOOL CDECL MSVCP__crtInitializeCriticalSectionEx(
     return InitializeCriticalSectionEx(cs, spin_count, flags);
 }
 
+/*********************************************************************
+ *  __crtCreateEventExW (MSVCP140.@)
+ */
+HANDLE CDECL MSVCP__crtCreateEventExW(
+        SECURITY_ATTRIBUTES *attribs, LPCWSTR name, DWORD flags, DWORD access)
+{
+    TRACE("(%p %s 0x%08x 0x%08x)\n", attribs, debugstr_w(name), flags, access);
+    return CreateEventExW(attribs, name, flags, access);
+}
+
 void init_misc(void *base)
 {
 #ifdef __x86_64__
-- 
2.8.1




More information about the wine-patches mailing list