projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f6d773
)
ecore_exe: fix send on Windows
author
Andrii Kroitor
<an.kroitor@samsung.com>
Thu, 22 Dec 2016 12:10:10 +0000
(14:10 +0200)
committer
Andrii Kroitor
<an.kroitor@samsung.com>
Thu, 22 Dec 2016 12:13:40 +0000
(14:13 +0200)
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.
src/lib/ecore/ecore_exe_win32.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore/ecore_exe_win32.c
b/src/lib/ecore/ecore_exe_win32.c
index
305298e
..
3532fe1
100644
(file)
--- 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);