mirror of
https://github.com/wiiu-env/AromaBaseModule.git
synced 2024-11-16 00:45:07 +01:00
Fix dereferencing null pointer
This commit is contained in:
parent
1d00a414d2
commit
07e2682f9b
@ -286,7 +286,7 @@ void NWF_Fix() {
|
||||
int state = OSDisableInterrupts();
|
||||
OSThread *t = *((OSThread **) 0x100567F8);
|
||||
while (t) {
|
||||
if (std::string_view(t->name) == "PlatformInputAppStateListenerThread") {
|
||||
if (t->name != nullptr && std::string_view(t->name) == "PlatformInputAppStateListenerThread") {
|
||||
t->priority = 0x80;
|
||||
OSReport("Set priority to %d for thread \"%s\" (%08X) to prevent it from running/crashing\n", t->priority, t->name, t);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user