mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-03-21 17:54:10 -05:00
Make __wups_getreent a bit more robust
This commit is contained in:
parent
3ff92ac5d1
commit
a1fb73ede0
|
|
@ -55,7 +55,11 @@ __wups_thread_cleanup(OSThread *thread,
|
|||
}
|
||||
|
||||
struct _reent *
|
||||
__wups_getreent(void) {
|
||||
__wups_getreent() {
|
||||
if (!wut_get_thread_specific || !wut_set_thread_specific || OSGetCurrentThread() == nullptr) {
|
||||
return _GLOBAL_REENT;
|
||||
}
|
||||
|
||||
struct __wups_thread_context *context;
|
||||
|
||||
context = (struct __wups_thread_context *) wut_get_thread_specific(__WUPS_CONTEXT_THREAD_SPECIFIC_ID);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user