Skip to content

Commit 2d03b62

Browse files
committed
lwpc_thread: fill output handle before starting the thread
1 parent 3469061 commit 2d03b62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libogc/lwpcompat/lwpc_thread.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ s32 LWP_CreateThread(lwp_t* thethread, void* (*entry)(void*), void* arg, void* s
3737
}
3838

3939
KThreadPrepare(t, (KThreadFn)entry, arg, (char*)stackbase + stack_size, KTHR_MIN_PRIO - (prio & LWP_PRIO_HIGHEST));
40-
KThreadResume(t);
4140

4241
*thethread = ~(u32)t;
42+
KThreadResume(t);
43+
4344
return 0;
4445
}
4546

0 commit comments

Comments
 (0)