Ignore high bit of spin count.

oldstable
Alexandre Julliard 2005-07-13 11:38:08 +00:00
parent 6a032491d3
commit 1ca3de36e8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}