From 8e5f385ce953169152a098108b3deec160b7f65d Mon Sep 17 00:00:00 2001 From: wrowe Date: Sat, 1 Sep 2007 06:23:18 +0000 Subject: Fix r569890 - this error did not hit 1.2 or 0.9 branches, thankfully. Submitted by: Steven Narin git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@571712 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/win32/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'threadproc') 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 */ -- cgit v1.2.1