Update libco

This commit is contained in:
twinaphex
2021-03-12 13:24:45 +01:00
parent e3fe05b646
commit ddef5f55aa
+1 -1
View File
@@ -45,7 +45,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void))
int32_t new_thread_id = CreateThread(&thread);
if (new_thread_id < 0)
printf("libco: ERROR: creating thread\n");
StartThread(new_thread_id, NULL);
*(uint32_t *)handle = new_thread_id;
return handle;