mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Initialize process critical section in the correct process context.
This commit is contained in:
parent
a988074d24
commit
586793ffd8
1 changed files with 1 additions and 5 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue