[PATCH v2 1/2] ntdll/tests: Correct Thread Termination Error

David Koolhoven david at koolhoven-home.net
Sat Feb 20 18:57:47 CST 2021


STATUS_THREAD_IS_TERMINATING is only used from calls to
QueueUserAPC(), and should set the error to
ERROR_GEN_FAILURE. This prepares the test to accept the
corrective patch.

Signed-off-by: David Koolhoven <david at koolhoven-home.net>
---
v2: Fix test breakage
---
 dlls/ntdll/tests/error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/tests/error.c b/dlls/ntdll/tests/error.c
index 05ba22223e3..d9ef1791848 100644
--- a/dlls/ntdll/tests/error.c
+++ b/dlls/ntdll/tests/error.c
@@ -268,7 +268,7 @@ static void run_error_tests(void)
     cmp2(STATUS_THREAD_WAS_SUSPENDED,            ERROR_THREAD_WAS_SUSPENDED);
     cmp2(STATUS_TOO_MANY_THREADS,                ERROR_TOO_MANY_THREADS);
     cmp2(STATUS_THREAD_NOT_IN_PROCESS,           ERROR_THREAD_NOT_IN_PROCESS);
-    cmp(STATUS_THREAD_IS_TERMINATING,            ERROR_ACCESS_DENIED);
+    cmp(STATUS_THREAD_IS_TERMINATING,            ERROR_GEN_FAILURE);
     cmp(STATUS_PROCESS_IS_TERMINATING,           ERROR_ACCESS_DENIED);
     cmp2(STATUS_SYSTEM_PROCESS_TERMINATED,       ERROR_SYSTEM_PROCESS_TERMINATED);
     cmp(STATUS_INVALID_LOCK_SEQUENCE,            ERROR_ACCESS_DENIED);
-- 
2.19.1




More information about the wine-devel mailing list