diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-09-01 06:23:18 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-09-01 06:23:18 +0000 |
commit | 8e5f385ce953169152a098108b3deec160b7f65d (patch) | |
tree | 0461a95848bc8b5c8c36d6a4d8a89ab6eed12c00 /threadproc/win32 | |
parent | 1538e2cb974f09980b8e72970361f42f8d74cadf (diff) | |
download | libapr-8e5f385ce953169152a098108b3deec160b7f65d.tar.gz |
Fix r569890 - this error did not hit 1.2 or 0.9 branches,
thankfully.
Submitted by: Steven Narin <steven.narin googlemail.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@571712 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/win32')
-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 */ |