diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c index 305298e232..3532fe1ddc 100644 --- a/src/lib/ecore/ecore_exe_win32.c +++ b/src/lib/ecore/ecore_exe_win32.c @@ -560,7 +560,7 @@ _impl_ecore_exe_send(Ecore_Exe *obj, BOOL res; res = WriteFile(exe->pipe_write.child_pipe_x, data, size, &num_exe, NULL); - if (!res || num_exe == 0) + if (size && !res || num_exe == 0) { ERR("Ecore_Exe %p stdin is closed! Cannot send %d bytes from %p", obj, size, data);