[PATCH 09/14] kernel32: Add GetCurrentUmsThread stub

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Mar 4 22:00:03 CST 2018


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 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 92146e1..126aa25 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)
-- 
1.9.1




More information about the wine-devel mailing list