This commit is contained in:
The Arrayser 2022-08-30 13:47:12 +02:00 committed by GitHub
parent 6eca5c2af5
commit 9f0f4aa085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ sus_Bool sus_threadNew(sus_threadProc proc, void * arg){
ti->proc = proc; ti->proc = proc;
ti->args = arg; ti->args = arg;
if(CreateThread(NULL, 0, threadProc, ti, 0, NULL) == NULL){ if(CreateThread(NULL, 0, threadProc, ti, 0, NULL) == NULL){
sus_heapFree(ti);
return sus_False; return sus_False;
}else{ }else{
return sus_True; return sus_True;