[PATCH 08/14] kernel32: Add ExecuteUmsThread stub

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Mar 4 22:00:02 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 09af923..b2b2422 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -437,7 +437,7 @@
 @ stdcall -arch=x86_64 EnterUmsSchedulingMode(ptr)
 @ stdcall EraseTape(ptr long long)
 @ stdcall EscapeCommFunction(long long)
-# @ stub -arch=x86_64 ExecuteUmsThread
+@ stdcall -arch=x86_64 ExecuteUmsThread(ptr)
 @ stdcall ExitProcess(long)
 @ stdcall ExitThread(long)
 @ stub ExitVDM
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 5de7c97..92146e1 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -4292,6 +4292,16 @@ BOOL WINAPI EnterUmsSchedulingMode(UMS_SCHEDULER_STARTUP_INFO *info)
     return FALSE;
 }
 
+/***********************************************************************
+ *           ExecuteUmsThread   (KERNEL32.@)
+ */
+BOOL WINAPI ExecuteUmsThread(PUMS_CONTEXT ctx)
+{
+    FIXME( "%p: stub\n", ctx );
+    SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
+    return FALSE;
+}
+
 /**********************************************************************
  *           BaseFlushAppcompatCache     (KERNEL32.@)
  */
diff --git a/include/winbase.h b/include/winbase.h
index 3cf28af..8bd65c7 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1957,6 +1957,7 @@ WINADVAPI  BOOL        WINAPI EqualPrefixSid(PSID,PSID);
 WINBASEAPI DWORD       WINAPI EraseTape(HANDLE,DWORD,BOOL);
 WINBASEAPI VOID DECLSPEC_NORETURN WINAPI ExitProcess(DWORD);
 WINBASEAPI VOID DECLSPEC_NORETURN WINAPI ExitThread(DWORD);
+WINBASEAPI BOOL        WINAPI ExecuteUmsThread(PUMS_CONTEXT);
 WINBASEAPI DWORD       WINAPI ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD);
 WINBASEAPI DWORD       WINAPI ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD);
 #define                       ExpandEnvironmentStrings WINELIB_NAME_AW(ExpandEnvironmentStrings)
-- 
1.9.1




More information about the wine-devel mailing list