[Wine-patches] [eterhack 06/24] ntoskrnl.exe: Implement PsTerminateSystemThread.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Мар 4 12:25:15 MSK 2009


---
 dlls/ntoskrnl.exe/ntoskrnl.c        |   12 ++++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    2 +-
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 5e4cc2c..d51fadb 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2367,6 +2367,18 @@ NTSTATUS WINAPI PsCreateSystemThread(PHANDLE ThreadHandle, ULONG DesiredAccess,
                                ThreadHandle, ClientId);
 }
 
+
+/***********************************************************************
+ *           PsTerminateSystemThread   (NTOSKRNL.EXE.@)
+ */
+NTSTATUS WINAPI PsTerminateSystemThread(NTSTATUS ExitStatus)
+{
+    TRACE("%x\n", ExitStatus);
+    RtlExitUserThread(ExitStatus);
+    return STATUS_UNSUCCESSFUL;
+}
+
+
 /***********************************************************************
  *           PsGetCurrentProcessId   (NTOSKRNL.EXE.@)
  */
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 064d7ab..a28467b 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -919,7 +919,7 @@
 @ stub PsSetProcessWindowStation
 @ stub PsSetThreadHardErrorsAreDisabled
 @ stub PsSetThreadWin32Thread
-@ stub PsTerminateSystemThread
+@ stdcall PsTerminateSystemThread(long)
 @ stub PsThreadType
 @ stub READ_REGISTER_BUFFER_UCHAR
 @ stub READ_REGISTER_BUFFER_ULONG
-- 
1.6.1.3.GIT



Подробная информация о списке рассылки Wine-patches