aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-08-29 16:46:22 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-08-29 16:46:22 +0900
commit0647f6877078561d425bac8195a41b9adb927b35 (patch)
tree98b9cd9c16564384de273ca45cbc4ea2870a2e62
parenteina: cpu - fix a typo in eina_cpu_count API doc (diff)
downloadefl-0647f6877078561d425bac8195a41b9adb927b35.tar.gz
ecore win32: modifiy to better meaningful exception.
-rw-r--r--src/lib/ecore/ecore_exe_win32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index 7da75fd1d1..6e6226cd09 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -376,6 +376,8 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data *exe)
DBG("Creating process %s", exe_cmd);
Ecore_Exe_Flags flags = exe->flags;
+ if (!exe_cmd) goto error;
+
if ((flags & ECORE_EXE_PIPE_AUTO) && (!(flags & ECORE_EXE_PIPE_ERROR))
&& (!(flags & ECORE_EXE_PIPE_READ)))
/* We need something to auto pipe. */
@@ -411,9 +413,6 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data *exe)
exe_cmd_buf[sizeof(exe_cmd_buf) - 1] = '\0';
}
- if (!exe->cmd)
- goto error;
-
/* stdout, stderr and stdin pipes */
sa.nLength = sizeof(SECURITY_ATTRIBUTES);