rimmed pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=299471991c19bde387e96073ccf2bee7deaa9fcd

commit 299471991c19bde387e96073ccf2bee7deaa9fcd
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Fri Dec 2 11:48:14 2016 +0200

    ecore_exe_win32: fix ecore_exe_send
    
    Write to the child pipe corect data size.
    @fix
---
 src/lib/ecore/ecore_exe_win32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index 11c6f1f..7b9f41d 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -29,7 +29,7 @@
  * FIXME :
  *
  * [ ] child program with ecore main loop does not exit and nothing is sent
- * [ ] ecore_exe_send fails (race condition ? same problem as above ?)
+ * [X] ecore_exe_send fails (race condition ? same problem as above ?)
  */
 
 #define ECORE_EXE_WIN32_TIMEOUT 3000
@@ -569,7 +569,7 @@ _impl_ecore_exe_send(Ecore_Exe  *obj,
    memcpy((char *)exe->pipe_write.data_buf + exe->pipe_write.data_size, data, 
size);
    exe->pipe_write.data_size += size;
 
-   res = WriteFile(exe->pipe_write.child_pipe_x, buf, READBUFSIZ, &num_exe, 
NULL);
+   res = WriteFile(exe->pipe_write.child_pipe_x, buf, 
exe->pipe_write.data_size, &num_exe, NULL);
    printf(" ** res : %d\n", res);
    if (!res || num_exe == 0)
      {

-- 


Reply via email to