forked from enlightenment/efl
ecore_exe: fix send on Windows
Check for bytes written only if more than 0 bytes were sent. I don't know why some efl code is trying to send 0 bytes, but that works on Linux and therefore should be fixed on Windows.
This commit is contained in:
parent
9f6d773fce
commit
11e687578d
|
@ -560,7 +560,7 @@ _impl_ecore_exe_send(Ecore_Exe *obj,
|
||||||
BOOL res;
|
BOOL res;
|
||||||
|
|
||||||
res = WriteFile(exe->pipe_write.child_pipe_x, data, size, &num_exe, NULL);
|
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",
|
ERR("Ecore_Exe %p stdin is closed! Cannot send %d bytes from %p",
|
||||||
obj, size, data);
|
obj, size, data);
|
||||||
|
|
Loading…
Reference in New Issue