Ignore high bit of spin count.
This commit is contained in:
parent
6a032491d3
commit
1ca3de36e8
|
@ -135,7 +135,8 @@ NTSTATUS WINAPI RtlInitializeCriticalSectionAndSpinCount( RTL_CRITICAL_SECTION *
|
|||
crit->RecursionCount = 0;
|
||||
crit->OwningThread = 0;
|
||||
crit->LockSemaphore = 0;
|
||||
crit->SpinCount = spincount;
|
||||
if (NtCurrentTeb()->Peb->NumberOfProcessors <= 1) spincount = 0;
|
||||
crit->SpinCount = spincount & ~0x80000000;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue