diff options
author | ChunEon Park <hermet@hermet.pe.kr> | 2015-08-29 16:46:22 +0900 |
---|---|---|
committer | ChunEon Park <hermet@hermet.pe.kr> | 2015-08-29 16:46:22 +0900 |
commit | 0647f6877078561d425bac8195a41b9adb927b35 (patch) | |
tree | 98b9cd9c16564384de273ca45cbc4ea2870a2e62 | |
parent | eab2b5af840afe71784b0d24c1d0bb10743cb04d (diff) | |
download | efl-0647f6877078561d425bac8195a41b9adb927b35.tar.gz |
ecore win32: modifiy to better meaningful exception.
-rw-r--r-- | src/lib/ecore/ecore_exe_win32.c | 5 |
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); |