Alexandre Julliard : ntdll: Don't output thread traces to the seh channel.

Alexandre Julliard julliard at winehq.org
Tue May 4 16:23:35 CDT 2021


Module: wine
Branch: master
Commit: e85dee1fb789407cfcb3026e3a3d7d01153da902
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e85dee1fb789407cfcb3026e3a3d7d01153da902

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue May  4 14:28:13 2021 +0200

ntdll: Don't output thread traces to the seh channel.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/thread.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dlls/ntdll/unix/thread.c b/dlls/ntdll/unix/thread.c
index 193a7b2274e..a2b9569a7b9 100644
--- a/dlls/ntdll/unix/thread.c
+++ b/dlls/ntdll/unix/thread.c
@@ -69,7 +69,8 @@
 #include "wine/exception.h"
 #include "unix_private.h"
 
-WINE_DEFAULT_DEBUG_CHANNEL(seh);
+WINE_DEFAULT_DEBUG_CHANNEL(thread);
+WINE_DECLARE_DEBUG_CHANNEL(seh);
 
 #ifndef PTHREAD_STACK_MIN
 #define PTHREAD_STACK_MIN 16384
@@ -443,12 +444,12 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
     if (first_chance) call_user_exception_dispatcher( rec, context, pKiUserExceptionDispatcher );
 
     if (rec->ExceptionFlags & EH_STACK_INVALID)
-        ERR("Exception frame is not in stack limits => unable to dispatch exception.\n");
+        ERR_(seh)("Exception frame is not in stack limits => unable to dispatch exception.\n");
     else if (rec->ExceptionCode == STATUS_NONCONTINUABLE_EXCEPTION)
-        ERR("Process attempted to continue execution after noncontinuable exception.\n");
+        ERR_(seh)("Process attempted to continue execution after noncontinuable exception.\n");
     else
-        ERR("Unhandled exception code %x flags %x addr %p\n",
-            rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress );
+        ERR_(seh)("Unhandled exception code %x flags %x addr %p\n",
+                  rec->ExceptionCode, rec->ExceptionFlags, rec->ExceptionAddress );
 
     NtTerminateProcess( NtCurrentProcess(), rec->ExceptionCode );
     return STATUS_SUCCESS;




More information about the wine-cvs mailing list