[Kernel] Fixed NtYieldExecution
Fixed Ninja Gaiden 3 stuck exiting challenge trials
This commit is contained in:
@@ -425,8 +425,7 @@ DECLARE_XBOXKRNL_EXPORT3(KeDelayExecutionThread, kThreading, kImplemented,
|
|||||||
kBlocking, kHighFrequency);
|
kBlocking, kHighFrequency);
|
||||||
|
|
||||||
dword_result_t NtYieldExecution_entry() {
|
dword_result_t NtYieldExecution_entry() {
|
||||||
auto thread = XThread::GetCurrentThread();
|
xe::threading::MaybeYield();
|
||||||
thread->Delay(0, 0, 0);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
DECLARE_XBOXKRNL_EXPORT2(NtYieldExecution, kThreading, kImplemented,
|
DECLARE_XBOXKRNL_EXPORT2(NtYieldExecution, kThreading, kImplemented,
|
||||||
|
|||||||
Reference in New Issue
Block a user