From 06013232fec7f9f0222f5d77b8553598b50fcf62 Mon Sep 17 00:00:00 2001 From: wrowe Date: Fri, 1 Jun 2007 00:00:13 +0000 Subject: Eliminate for WinCE the special handling of program files ending in ".bat" or ".cmd" and falls through to the general case. There is no COMSPEC on WinCE (no getenv either) and no command line shell. PR: 39869 Submitted by: Curt Arnold Reviewed by: Davi Arnaut git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543324 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/win32/proc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'threadproc') diff --git a/threadproc/win32/proc.c b/threadproc/win32/proc.c index 0092faeb4..3f48d15e9 100644 --- a/threadproc/win32/proc.c +++ b/threadproc/win32/proc.c @@ -505,6 +505,9 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, else #endif { +#if defined(_WIN32_WCE) + { +#else /* Win32 is _different_ than unix. While unix will find the given * program since it's already chdir'ed, Win32 cannot since the parent * attempts to open the program with it's own path. @@ -562,6 +565,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, } } else { +#endif /* A simple command we are directly invoking. Do not pass * the first arg to CreateProc() for APR_PROGRAM_PATH * invocation, since it would need to be a literal and -- cgit v1.2.1