summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-05-09 14:09:08 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-09 14:09:08 -0400
commit84e6fabbb3381c42d21eb224a77b86cdf335e89b (patch)
tree7688dd6dd04a95ea739d725872aeef7835fd70c2 /src/lib/ecore
parent524139a16ffe9d278e1d4b5cea2d61ed7a70955d (diff)
Ecore_Exe: fix warning on Windows
Summary: ExitProcess() has not the signature expected by CreateRemoteThread() Test Plan: compilation Reviewers: raster, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8870
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_exe_win32.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index 7ca179a482..69e80dafbf 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -260,6 +260,15 @@ _ecore_exe_thread_procedure(LPVOID data EINA_UNUSED)
260 return 1; 260 return 1;
261} 261}
262 262
263static DWORD __stdcall
264_ecore_exe_exit_process(void *data)
265{
266 UINT *code;
267 code = (UINT *)data;
268 ExitProcess(*code);
269 return 1;
270}
271
263static BOOL CALLBACK 272static BOOL CALLBACK
264_ecore_exe_enum_windows_procedure(HWND window, 273_ecore_exe_enum_windows_procedure(HWND window,
265 LPARAM data) 274 LPARAM data)
@@ -267,6 +276,7 @@ _ecore_exe_enum_windows_procedure(HWND window,
267 Ecore_Exe *obj = (Ecore_Exe *) data; 276 Ecore_Exe *obj = (Ecore_Exe *) data;
268 Ecore_Exe_Data *exe = efl_data_scope_get(obj, ECORE_EXE_CLASS); 277 Ecore_Exe_Data *exe = efl_data_scope_get(obj, ECORE_EXE_CLASS);
269 DWORD thread_id; 278 DWORD thread_id;
279 UINT code = 0;
270 280
271 if (!exe) return EINA_FALSE; 281 if (!exe) return EINA_FALSE;
272 thread_id = GetWindowThreadProcessId(window, NULL); 282 thread_id = GetWindowThreadProcessId(window, NULL);
@@ -295,7 +305,8 @@ _ecore_exe_enum_windows_procedure(HWND window,
295 305
296 /* Exit process */ 306 /* Exit process */
297 if (CreateRemoteThread(exe->process, NULL, 0, 307 if (CreateRemoteThread(exe->process, NULL, 0,
298 (LPTHREAD_START_ROUTINE)ExitProcess, NULL, 308 (LPTHREAD_START_ROUTINE)_ecore_exe_exit_process,
309 &code,
299 0, NULL)) 310 0, NULL))
300 return EINA_FALSE; 311 return EINA_FALSE;
301 312