diff options
Diffstat (limited to 'threadproc/win32/proc.c')
-rw-r--r-- | threadproc/win32/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c index 01884bd4a..c47c40ab4 100644 --- a/threadproc/win32/proc.c +++ b/threadproc/win32/proc.c @@ -767,7 +767,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, /* LOCK CRITICAL SECTION * before we begin to manipulate the inherited handles */ - LeaveCriticalSection(&proc_lock); + EnterCriticalSection(&proc_lock); if ((attr->child_in && attr->child_in->filehand) || (attr->child_out && attr->child_out->filehand) @@ -872,7 +872,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, /* RELEASE CRITICAL SECTION * The state of the inherited handles has been restored. */ - EnterCriticalSection(&proc_lock); + LeaveCriticalSection(&proc_lock); #else /* defined(_WIN32_WCE) */ rv = CreateProcessW(wprg, wcmd, /* Executable & Command line */ |