mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
101 lines
5.1 KiB
Diff
101 lines
5.1 KiB
Diff
|
From 98c0534337d1057e68369b939769dfed30f065ed Mon Sep 17 00:00:00 2001
|
||
|
From: Thomas Crider <gloriouseggroll@gmail.com>
|
||
|
Date: Fri, 13 Apr 2018 18:04:09 -0400
|
||
|
Subject: kernel32: add SetProcessAffinityUpdateMode stub
|
||
|
|
||
|
---
|
||
|
.../api-ms-win-core-processthreads-l1-1-0.spec | 2 +-
|
||
|
.../api-ms-win-core-processthreads-l1-1-1.spec | 2 +-
|
||
|
.../api-ms-win-core-processthreads-l1-1-2.spec | 2 +-
|
||
|
dlls/kernel32/kernel32.spec | 2 +-
|
||
|
dlls/kernel32/process.c | 7 +++++++
|
||
|
dlls/kernelbase/kernelbase.spec | 2 +-
|
||
|
6 files changed, 12 insertions(+), 5 deletions(-)
|
||
|
|
||
|
diff --git a/dlls/api-ms-win-core-processthreads-l1-1-0/api-ms-win-core-processthreads-l1-1-0.spec b/dlls/api-ms-win-core-processthreads-l1-1-0/api-ms-win-core-processthreads-l1-1-0.spec
|
||
|
index ff13d48..154c875 100644
|
||
|
--- a/dlls/api-ms-win-core-processthreads-l1-1-0/api-ms-win-core-processthreads-l1-1-0.spec
|
||
|
+++ b/dlls/api-ms-win-core-processthreads-l1-1-0/api-ms-win-core-processthreads-l1-1-0.spec
|
||
|
@@ -32,7 +32,7 @@
|
||
|
@ stdcall QueueUserAPC(ptr long long) kernel32.QueueUserAPC
|
||
|
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
||
|
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
||
|
-@ stub SetProcessAffinityUpdateMode
|
||
|
+@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
||
|
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
||
|
@ stdcall SetThreadPriority(long long) kernel32.SetThreadPriority
|
||
|
@ stdcall SetThreadPriorityBoost(long long) kernel32.SetThreadPriorityBoost
|
||
|
diff --git a/dlls/api-ms-win-core-processthreads-l1-1-1/api-ms-win-core-processthreads-l1-1-1.spec b/dlls/api-ms-win-core-processthreads-l1-1-1/api-ms-win-core-processthreads-l1-1-1.spec
|
||
|
index 381db8a..ebbe55f 100644
|
||
|
--- a/dlls/api-ms-win-core-processthreads-l1-1-1/api-ms-win-core-processthreads-l1-1-1.spec
|
||
|
+++ b/dlls/api-ms-win-core-processthreads-l1-1-1/api-ms-win-core-processthreads-l1-1-1.spec
|
||
|
@@ -43,7 +43,7 @@
|
||
|
@ stdcall QueueUserAPC(ptr long long) kernel32.QueueUserAPC
|
||
|
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
||
|
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
||
|
-@ stub SetProcessAffinityUpdateMode
|
||
|
+@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
||
|
@ stub SetProcessMitigationPolicy
|
||
|
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
||
|
@ stdcall SetThreadContext(long ptr) kernel32.SetThreadContext
|
||
|
diff --git a/dlls/api-ms-win-core-processthreads-l1-1-2/api-ms-win-core-processthreads-l1-1-2.spec b/dlls/api-ms-win-core-processthreads-l1-1-2/api-ms-win-core-processthreads-l1-1-2.spec
|
||
|
index fc2feec..db94c2e 100644
|
||
|
--- a/dlls/api-ms-win-core-processthreads-l1-1-2/api-ms-win-core-processthreads-l1-1-2.spec
|
||
|
+++ b/dlls/api-ms-win-core-processthreads-l1-1-2/api-ms-win-core-processthreads-l1-1-2.spec
|
||
|
@@ -48,7 +48,7 @@
|
||
|
@ stdcall QueueUserAPC(ptr long long) kernel32.QueueUserAPC
|
||
|
@ stdcall ResumeThread(long) kernel32.ResumeThread
|
||
|
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
||
|
-@ stub SetProcessAffinityUpdateMode
|
||
|
+@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
||
|
@ stub SetProcessMitigationPolicy
|
||
|
@ stdcall SetProcessPriorityBoost(long long) kernel32.SetProcessPriorityBoost
|
||
|
@ stdcall SetProcessShutdownParameters(long long) kernel32.SetProcessShutdownParameters
|
||
|
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
|
||
|
index 7470d2b..8b8fa3a 100644
|
||
|
--- a/dlls/kernel32/kernel32.spec
|
||
|
+++ b/dlls/kernel32/kernel32.spec
|
||
|
@@ -1425,7 +1425,7 @@
|
||
|
@ stdcall SetNamedPipeHandleState(long ptr ptr ptr)
|
||
|
@ stdcall SetPriorityClass(long long)
|
||
|
@ stdcall SetProcessAffinityMask(long long)
|
||
|
-# @ stub SetProcessAffinityUpdateMode
|
||
|
+@ stdcall SetProcessAffinityUpdateMode(long long)
|
||
|
@ stdcall SetProcessDEPPolicy(long)
|
||
|
# @ stub SetProcessPreferredUILanguages
|
||
|
@ stdcall SetProcessPriorityBoost(long long)
|
||
|
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
|
||
|
index 47f1cfb..613b30b 100644
|
||
|
--- a/dlls/kernel32/process.c
|
||
|
+++ b/dlls/kernel32/process.c
|
||
|
@@ -3647,6 +3647,13 @@ cleanup:
|
||
|
return !status;
|
||
|
}
|
||
|
|
||
|
+BOOL WINAPI SetProcessAffinityUpdateMode(HANDLE hProcess, DWORD flags)
|
||
|
+{
|
||
|
+ FIXME("(%p,0x%08x): stub\n", hProcess, flags);
|
||
|
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||
|
+ return FALSE;
|
||
|
+}
|
||
|
+
|
||
|
/***********************************************************************
|
||
|
* K32GetProcessImageFileNameA (KERNEL32.@)
|
||
|
*/
|
||
|
diff --git a/dlls/kernelbase/kernelbase.spec b/dlls/kernelbase/kernelbase.spec
|
||
|
index be1e5b5..768eadf 100644
|
||
|
--- a/dlls/kernelbase/kernelbase.spec
|
||
|
+++ b/dlls/kernelbase/kernelbase.spec
|
||
|
@@ -1452,7 +1452,7 @@
|
||
|
@ stdcall SetPriorityClass(long long) kernel32.SetPriorityClass
|
||
|
@ stdcall SetPrivateObjectSecurity(long ptr ptr ptr long) advapi32.SetPrivateObjectSecurity
|
||
|
@ stub SetPrivateObjectSecurityEx
|
||
|
-@ stub SetProcessAffinityUpdateMode
|
||
|
+@ stdcall SetProcessAffinityUpdateMode(long long) kernel32.SetProcessAffinityUpdateMode
|
||
|
# @ stub SetProcessDefaultCpuSets
|
||
|
# @ stub SetProcessGroupAffinity
|
||
|
# @ stub SetProcessInformation
|
||
|
--
|
||
|
2.7.4
|
||
|
|