Added definition for STILL_ACTIVE.
This commit is contained in:
parent
2d33ab91f4
commit
717bf7e9ea
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue