ecore_win32: fix segfault

Summary:
_ecore_exe_pipe_read_thread_cb and _ecore_exe_pipe_error_thread_cb expecting
object as argument.

Reviewers: cedric, seoz, Hermet

Subscribers: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D2185

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
devs/avilog/callbacks_by_counterpart
Andrii Kroitor 8 years ago committed by Cedric BAIL
parent 190f13f430
commit 9f96d4996c
  1. 4
      src/lib/ecore/ecore_exe_win32.c

@ -429,7 +429,7 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data *exe)
goto close_pipe_read;
exe->pipe_read.thread = (HANDLE)_beginthreadex(NULL, 0,
_ecore_exe_pipe_read_thread_cb,
exe, 0, NULL);
obj, 0, NULL);
if (!exe->pipe_read.thread)
goto close_pipe_read;
}
@ -443,7 +443,7 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data *exe)
goto close_pipe_error;
exe->pipe_error.thread = (HANDLE)_beginthreadex(NULL, 0,
_ecore_exe_pipe_error_thread_cb,
exe, 0, NULL);
obj, 0, NULL);
if (!exe->pipe_error.thread)
goto close_pipe_error;
}

Loading…
Cancel
Save