diff --git a/System Abstraction/cdb_sustem.h b/System Abstraction/cdb_sustem.h index 19eea56..ca4c7eb 100644 --- a/System Abstraction/cdb_sustem.h +++ b/System Abstraction/cdb_sustem.h @@ -41,6 +41,6 @@ void sus_heapFree(void * memroy); // what should this function do, if an error o // Networking API -- coming soon, cuz idk //Threads -typedef __attribute__ ((sysv_abi)) int (*sus_threadProc)(void * arg); +typedef __attribute__ ((sysv_abi)) void (*sus_threadProc)(void * arg); sus_Bool sus_threadNew(sus_threadProc proc, void * arg); void sus_threadSleep(unsigned long seconds); \ No newline at end of file diff --git a/System Abstraction/win32/cdb_thread.c b/System Abstraction/win32/cdb_thread.c index e535704..f60acf2 100644 --- a/System Abstraction/win32/cdb_thread.c +++ b/System Abstraction/win32/cdb_thread.c @@ -10,7 +10,8 @@ DWORD WINAPI threadProc(void * tiarg){ struct threadInfo * ti = tiarg; struct threadInfo currentTI = {.args = ti->args, .proc = ti->proc}; sus_heapFree(ti); - return currentTI.proc(currentTI.args); + currentTI.proc(currentTI.args); + return 0; } sus_Bool sus_threadNew(sus_threadProc proc, void * arg){