[Kernel] Fixed issue in NtResumeThread introduced in previous commit
This commit is contained in:
parent
68b2174378
commit
921923472b
|
@ -198,7 +198,15 @@ dword_result_t NtResumeThread_entry(dword_t handle,
|
||||||
lpdword_t suspend_count_ptr) {
|
lpdword_t suspend_count_ptr) {
|
||||||
uint32_t suspend_count =
|
uint32_t suspend_count =
|
||||||
suspend_count_ptr ? static_cast<uint32_t>(*suspend_count_ptr) : 0u;
|
suspend_count_ptr ? static_cast<uint32_t>(*suspend_count_ptr) : 0u;
|
||||||
return NtResumeThread(handle, suspend_count_ptr ? &suspend_count : nullptr);
|
|
||||||
|
const X_RESULT result =
|
||||||
|
NtResumeThread(handle, suspend_count_ptr ? &suspend_count : nullptr);
|
||||||
|
|
||||||
|
if (suspend_count_ptr) {
|
||||||
|
*suspend_count_ptr = suspend_count;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
DECLARE_XBOXKRNL_EXPORT1(NtResumeThread, kThreading, kImplemented);
|
DECLARE_XBOXKRNL_EXPORT1(NtResumeThread, kThreading, kImplemented);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue