From 261691fa2f923fb34604c5b8f09f19f20794d610 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 23 Aug 2006 16:13:02 +0900 Subject: [PATCH] server: Use ntdll values where possible. --- server/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/thread.c b/server/thread.c index 36d1d79450d..56cdbd20692 100644 --- a/server/thread.c +++ b/server/thread.c @@ -140,7 +140,7 @@ inline static void init_thread_structure( struct thread *thread ) 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;