Alistair Leslie-Hughes : kernel32: Add GetCurrentUmsThread stub.

Alexandre Julliard julliard at winehq.org
Mon Mar 5 16:14:31 CST 2018


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Mar  5 04:00:03 2018 +0000

kernel32: Add GetCurrentUmsThread stub.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/kernel32.spec |  2 +-
 dlls/kernel32/process.c     | 10 ++++++++++
 include/winbase.h           |  1 +
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index b2b2422..3a295fb 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -637,7 +637,7 @@
 @ stdcall GetCurrentProcessorNumberEx(ptr) ntdll.RtlGetCurrentProcessorNumberEx
 @ stdcall -norelay GetCurrentThread()
 @ stdcall -norelay GetCurrentThreadId()
-# @ stub -arch=x86_64 GetCurrentUmsThread
+@ stdcall -arch=x86_64 GetCurrentUmsThread()
 @ stdcall GetDateFormatA(long long ptr str ptr long)
 @ stdcall GetDateFormatEx(wstr long ptr wstr ptr long wstr)
 @ stdcall GetDateFormatW(long long ptr wstr ptr long)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 9fed99a..ac37fd0 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -4302,6 +4302,16 @@ BOOL WINAPI ExecuteUmsThread(PUMS_CONTEXT ctx)
     return FALSE;
 }
 
+/***********************************************************************
+ *           GetCurrentUmsThread   (KERNEL32.@)
+ */
+PUMS_CONTEXT WINAPI GetCurrentUmsThread(void)
+{
+    FIXME( "stub\n" );
+    SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+    return FALSE;
+}
+
 /**********************************************************************
  *           BaseFlushAppcompatCache     (KERNEL32.@)
  */
diff --git a/include/winbase.h b/include/winbase.h
index 8bd65c7..4753015 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2073,6 +2073,7 @@ WINBASEAPI DWORD       WINAPI GetCurrentProcessorNumber(void);
 WINBASEAPI VOID        WINAPI GetCurrentProcessorNumberEx(PPROCESSOR_NUMBER);
 WINBASEAPI HANDLE      WINAPI GetCurrentThread(void);
 #define                       GetCurrentTime() GetTickCount()
+WINBASEAPI PUMS_CONTEXT WINAPI GetCurrentUmsThread(void);
 WINBASEAPI BOOL        WINAPI GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD);
 WINBASEAPI BOOL        WINAPI GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD);
 #define                       GetDefaultCommConfig WINELIB_NAME_AW(GetDefaultCommConfig)




More information about the wine-cvs mailing list