diff --git a/include/winbase.h b/include/winbase.h index d35dc77ac87..a08993749af 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -899,6 +899,7 @@ typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_I #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0 #define WAIT_IO_COMPLETION STATUS_USER_APC #define WAIT_TIMEOUT STATUS_TIMEOUT +#define STILL_ACTIVE STATUS_PENDING #define PAGE_NOACCESS 0x01 #define PAGE_READONLY 0x02 diff --git a/scheduler/process.c b/scheduler/process.c index e5dcf296102..7ea00626662 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -302,7 +302,7 @@ static PDB *PROCESS_CreatePDB( PDB *parent, BOOL inherit ) PDB *pdb = HeapAlloc( SystemHeap, HEAP_ZERO_MEMORY, sizeof(PDB) ); if (!pdb) return NULL; - pdb->exit_code = 0x103; /* STILL_ACTIVE */ + pdb->exit_code = STILL_ACTIVE; pdb->threads = 1; pdb->running_threads = 1; pdb->ring0_threads = 1; @@ -329,7 +329,7 @@ BOOL PROCESS_Init( BOOL win32 ) server_fd = CLIENT_InitServer(); /* Fill the initial process structure */ - initial_pdb.exit_code = 0x103; /* STILL_ACTIVE */ + initial_pdb.exit_code = STILL_ACTIVE; initial_pdb.threads = 1; initial_pdb.running_threads = 1; initial_pdb.ring0_threads = 1; diff --git a/scheduler/thread.c b/scheduler/thread.c index c2d55390452..5a725e9f95c 100644 --- a/scheduler/thread.c +++ b/scheduler/thread.c @@ -176,7 +176,7 @@ TEB *THREAD_CreateInitialThread( PDB *pdb, int server_fd ) initial_teb.tibflags = (pdb->flags & PDB32_WIN16_PROC)? 0 : TEBF_WIN32; initial_teb.tls_ptr = initial_teb.tls_array; initial_teb.process = pdb; - initial_teb.exit_code = 0x103; /* STILL_ACTIVE */ + initial_teb.exit_code = STILL_ACTIVE; initial_teb.socket = server_fd; /* Allocate the TEB selector (%fs register) */ @@ -220,7 +220,7 @@ TEB *THREAD_Create( PDB *pdb, int fd, DWORD flags, DWORD stack_size, BOOL alloc_ teb->tibflags = (pdb->flags & PDB32_WIN16_PROC)? 0 : TEBF_WIN32; teb->tls_ptr = teb->tls_array; teb->process = pdb; - teb->exit_code = 0x103; /* STILL_ACTIVE */ + teb->exit_code = STILL_ACTIVE; teb->socket = fd; /* Allocate the TEB selector (%fs register) */ diff --git a/server/process.c b/server/process.c index a28ed72318b..b12221efde0 100644 --- a/server/process.c +++ b/server/process.c @@ -143,7 +143,7 @@ struct thread *create_process( int fd, struct process *parent, process->thread_list = NULL; process->debugger = NULL; process->handles = NULL; - process->exit_code = 0x103; /* STILL_ACTIVE */ + process->exit_code = STILL_ACTIVE; process->running_threads = 0; process->priority = NORMAL_PRIORITY_CLASS; process->affinity = 1; diff --git a/server/thread.c b/server/thread.c index 962a7bf76ae..b04215893fa 100644 --- a/server/thread.c +++ b/server/thread.c @@ -128,7 +128,7 @@ struct thread *create_thread( int fd, struct process *process, int suspend ) thread->pass_fd = -1; thread->state = RUNNING; thread->attached = 0; - thread->exit_code = 0x103; /* STILL_ACTIVE */ + thread->exit_code = STILL_ACTIVE; thread->next = NULL; thread->prev = NULL; thread->priority = THREAD_PRIORITY_NORMAL;