summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ffi_abstraction.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ffi_abstraction.c b/src/lib/ffi_abstraction.c
index c393b4a..79de97c 100644
--- a/src/lib/ffi_abstraction.c
+++ b/src/lib/ffi_abstraction.c
@@ -283,13 +283,14 @@ _ffi_eo_do_get(const Gui_Session *session, const Gui_Widget *wdg, const Gui_Widg
283 /* Check if arg_num == 2, t.e. 1 for Eo object and one for parameter. 283 /* Check if arg_num == 2, t.e. 1 for Eo object and one for parameter.
284 * In this case result will be returned as return value, 284 * In this case result will be returned as return value,
285 * so write it into first parameter. */ 285 * so write it into first parameter. */
286 void *ret_value = NULL; 286 intptr_t ret_value = 0;
287 ffi_call(&cif, (void (*)()) func_pointer, &ret_value, values);
287 if (arg_num == 2) 288 if (arg_num == 2)
288 { 289 {
289 Gui_Value *val = prop_value_nth_get(prop, 0); 290 Gui_Value *val = prop_value_nth_get(prop, 0);
290 ret_value = gui_value_pointer_get(val); 291 void *retp = gui_value_pointer_get(val);
292 *(intptr_t *)retp = ret_value;
291 } 293 }
292 ffi_call(&cif, (void (*)()) func_pointer, ret_value, values);
293 ret = EINA_TRUE; 294 ret = EINA_TRUE;
294 } 295 }
295 296