[Kernel] Fixed NtYieldExecution

Fixed Ninja Gaiden 3 stuck exiting challenge trials
This commit is contained in:
Adrian
2025-10-16 20:13:29 +01:00
committed by Radosław Gliński
parent 2cd35e8dd6
commit 38ad9bf342

View File

@@ -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,