coreinit: Fix race condition in __FSAIoctlResponseCallback
Some checks failed
Generate translation template / generate-pot (push) Failing after 1s
Build check / build (push) Has been cancelled

This commit is contained in:
Exzap 2025-05-17 20:45:58 +02:00
parent 28ea70b6d8
commit 783d88a892

View file

@ -742,7 +742,8 @@ namespace coreinit
}
__FSCmdSubmitResult(cmd, fsStatus);
__FSUpdateQueue(&cmd->fsClientBody->fsCmdQueue);
// dont read from cmd after this point, since the game could already have modified it
__FSUpdateQueue(&client->fsCmdQueue);
osLib_returnFromFunction(hCPU, 0);
}