Commit 586793ff authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Initialize process critical section in the correct process context.

parent a988074d
...@@ -459,11 +459,11 @@ void PROCESS_Start(void) ...@@ -459,11 +459,11 @@ void PROCESS_Start(void)
PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0, 0 ); /* for initial thread */ PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0, 0 ); /* for initial thread */
#if 0
/* Initialize the critical section */ /* Initialize the critical section */
InitializeCriticalSection( &pdb->crit_section ); InitializeCriticalSection( &pdb->crit_section );
#if 0
/* Create the heap */ /* Create the heap */
size = PE_HEADER(pModule->module32)->OptionalHeader.SizeOfHeapReserve; size = PE_HEADER(pModule->module32)->OptionalHeader.SizeOfHeapReserve;
...@@ -568,10 +568,6 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env, ...@@ -568,10 +568,6 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env,
info->hProcess = reply.handle; info->hProcess = reply.handle;
info->dwProcessId = (DWORD)pdb->server_pid; info->dwProcessId = (DWORD)pdb->server_pid;
/* Initialize the critical section */
InitializeCriticalSection( &pdb->crit_section );
/* Setup process flags */ /* Setup process flags */
if ( !pModule->module32 ) if ( !pModule->module32 )
......
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