From: Sebastian B. <sb...@us...> - 2014-02-23 13:23:46
|
Update of /cvsroot/simplemail/simplemail/gtk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24366/gtk Modified Files: subthreads.c Log Message: Function thread_call_function_sync() should return the value of the called function. Index: subthreads.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/gtk/subthreads.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -r1.62 -r1.63 --- subthreads.c 19 Jan 2014 18:55:50 -0000 1.62 +++ subthreads.c 23 Feb 2014 13:23:44 -0000 1.63 @@ -370,13 +370,14 @@ int thread_call_function_sync(thread_t thread, void *function, int argcount, ...) { int rc; + uintptr_t function_rc; va_list argptr; va_start(argptr,argcount); - rc = thread_call_function_sync_v(thread, NULL, function, argcount, argptr); + rc = thread_call_function_sync_v(thread, &function_rc, function, argcount, argptr); va_end(argptr); - return rc; + return function_rc; } /***************************************************************************************/ |