Commit 261691fa authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

server: Use ntdll values where possible.

parent b346d0f2
...@@ -140,7 +140,7 @@ inline static void init_thread_structure( struct thread *thread ) ...@@ -140,7 +140,7 @@ inline static void init_thread_structure( struct thread *thread )
thread->wait_fd = NULL; thread->wait_fd = NULL;
thread->state = RUNNING; thread->state = RUNNING;
thread->exit_code = 0; thread->exit_code = 0;
thread->priority = THREAD_PRIORITY_NORMAL; thread->priority = 0;
thread->affinity = 1; thread->affinity = 1;
thread->suspend = 0; thread->suspend = 0;
thread->desktop_users = 0; thread->desktop_users = 0;
...@@ -764,7 +764,7 @@ void break_thread( struct thread *thread ) ...@@ -764,7 +764,7 @@ void break_thread( struct thread *thread )
assert( thread->context ); assert( thread->context );
data.record.ExceptionCode = EXCEPTION_BREAKPOINT; data.record.ExceptionCode = STATUS_BREAKPOINT;
data.record.ExceptionFlags = EXCEPTION_CONTINUABLE; data.record.ExceptionFlags = EXCEPTION_CONTINUABLE;
data.record.ExceptionRecord = NULL; data.record.ExceptionRecord = NULL;
data.record.ExceptionAddress = get_context_ip( thread->context ); data.record.ExceptionAddress = get_context_ip( thread->context );
...@@ -945,7 +945,7 @@ DECL_HANDLER(get_thread_info) ...@@ -945,7 +945,7 @@ DECL_HANDLER(get_thread_info)
reply->pid = get_process_id( thread->process ); reply->pid = get_process_id( thread->process );
reply->tid = get_thread_id( thread ); reply->tid = get_thread_id( thread );
reply->teb = thread->teb; 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->priority = thread->priority;
reply->affinity = thread->affinity; reply->affinity = thread->affinity;
reply->creation_time.sec = thread->creation_time.tv_sec; reply->creation_time.sec = thread->creation_time.tv_sec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment