register duplicated xbox handle require duplicated handle from host

This commit is contained in:
RadWolfie 2022-01-29 17:16:41 -06:00 committed by ergo720
parent e85af190d5
commit 0b90a48434
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ XBSYSAPI EXPORTNUM(255) xbox::ntstatus_xt NTAPI xbox::PsCreateSystemThreadEx
KeQuerySystemTime(&eThread->CreateTime);
KiUniqueProcess.StackCount++;
RegisterXboxHandle(*ThreadHandle, handle);
RegisterXboxHandle(eThread->UniqueThread, handle);
HANDLE dupHandle = OpenThread(THREAD_ALL_ACCESS, FALSE, ThreadId);
RegisterXboxHandle(eThread->UniqueThread, dupHandle);
g_AffinityPolicy->SetAffinityXbox(handle);