Mike McCormack : server: Use ntdll values where possible.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 23 05:55:42 CDT 2006


Module: wine
Branch: master
Commit: 261691fa2f923fb34604c5b8f09f19f20794d610
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=261691fa2f923fb34604c5b8f09f19f20794d610

Author: Mike McCormack <mike at codeweavers.com>
Date:   Wed Aug 23 16:13:02 2006 +0900

server: Use ntdll values where possible.

---

 server/thread.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/thread.c b/server/thread.c
index 36d1d79..56cdbd2 100644
--- a/server/thread.c
+++ b/server/thread.c
@@ -140,7 +140,7 @@ inline static void init_thread_structure
     thread->wait_fd         = NULL;
     thread->state           = RUNNING;
     thread->exit_code       = 0;
-    thread->priority        = THREAD_PRIORITY_NORMAL;
+    thread->priority        = 0;
     thread->affinity        = 1;
     thread->suspend         = 0;
     thread->desktop_users   = 0;
@@ -764,7 +764,7 @@ void break_thread( struct thread *thread
 
     assert( thread->context );
 
-    data.record.ExceptionCode    = EXCEPTION_BREAKPOINT;
+    data.record.ExceptionCode    = STATUS_BREAKPOINT;
     data.record.ExceptionFlags   = EXCEPTION_CONTINUABLE;
     data.record.ExceptionRecord  = NULL;
     data.record.ExceptionAddress = get_context_ip( thread->context );
@@ -945,7 +945,7 @@ DECL_HANDLER(get_thread_info)
         reply->pid            = get_process_id( thread->process );
         reply->tid            = get_thread_id( thread );
         reply->teb            = thread->teb;
-        reply->exit_code      = (thread->state == TERMINATED) ? thread->exit_code : STILL_ACTIVE;
+        reply->exit_code      = (thread->state == TERMINATED) ? thread->exit_code : STATUS_PENDING;
         reply->priority       = thread->priority;
         reply->affinity       = thread->affinity;
         reply->creation_time.sec  = thread->creation_time.tv_sec;




More information about the wine-cvs mailing list