From 586793ffd876d3d8d1e456cf84715e1114086743 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 25 Apr 1999 11:04:45 +0000 Subject: [PATCH] Initialize process critical section in the correct process context. --- scheduler/process.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scheduler/process.c b/scheduler/process.c index 52488d009c6..6b6a84fe6f7 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -459,11 +459,11 @@ void PROCESS_Start(void) PROCESS_CallUserSignalProc( USIG_THREAD_INIT, 0, 0 ); /* for initial thread */ -#if 0 /* Initialize the critical section */ InitializeCriticalSection( &pdb->crit_section ); +#if 0 /* Create the heap */ size = PE_HEADER(pModule->module32)->OptionalHeader.SizeOfHeapReserve; @@ -568,10 +568,6 @@ PDB *PROCESS_Create( NE_MODULE *pModule, LPCSTR cmd_line, LPCSTR env, info->hProcess = reply.handle; info->dwProcessId = (DWORD)pdb->server_pid; - /* Initialize the critical section */ - - InitializeCriticalSection( &pdb->crit_section ); - /* Setup process flags */ if ( !pModule->module32 )