summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_main.c')
-rw-r--r--src/lib/elementary/elm_main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 90647b30aa..cfa6ef84f5 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1362,9 +1362,13 @@ elm_run(void)
1362} 1362}
1363 1363
1364EAPI void 1364EAPI void
1365efl_exit(unsigned char exit_code) 1365efl_exit(int exit_code)
1366{ 1366{
1367 efl_loop_quit(ecore_main_loop_get(), exit_code); 1367 Eina_Value v = EINA_VALUE_EMPTY;
1368
1369 eina_value_setup(&v, EINA_VALUE_TYPE_INT);
1370 eina_value_set(&v, &exit_code);
1371 efl_loop_quit(ecore_main_loop_get(), v);
1368 1372
1369 if (elm_policy_get(ELM_POLICY_EXIT) == ELM_POLICY_EXIT_WINDOWS_DEL) 1373 if (elm_policy_get(ELM_POLICY_EXIT) == ELM_POLICY_EXIT_WINDOWS_DEL)
1370 { 1374 {