mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Fixed the initialization of critical section objects.
svn path=/trunk/; revision=12883
This commit is contained in:
parent
2c65e4355d
commit
6dbed13c78
1 changed files with 4 additions and 2 deletions
|
@ -216,6 +216,7 @@ RtlInitializeCriticalSectionAndSpinCount (
|
|||
CriticalSection->RecursionCount = 0;
|
||||
CriticalSection->OwningThread = 0;
|
||||
CriticalSection->SpinCount = (NtCurrentPeb()->NumberOfProcessors > 1) ? SpinCount : 0;
|
||||
CriticalSection->LockSemaphore = 0;
|
||||
|
||||
/* Allocate the Debug Data */
|
||||
CritcalSectionDebugData = RtlpAllocateDebugInfo();
|
||||
|
@ -479,9 +480,10 @@ RtlpUnWaitCriticalSection(
|
|||
if (!NT_SUCCESS(Status)) {
|
||||
|
||||
/* We've failed */
|
||||
DPRINT1("Signaling Failed for: %x, %x\n",
|
||||
DPRINT1("Signaling Failed for: %x, %x, %x\n",
|
||||
CriticalSection,
|
||||
CriticalSection->LockSemaphore);
|
||||
CriticalSection->LockSemaphore,
|
||||
Status);
|
||||
RtlRaiseStatus(Status);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue