- Fixed the initialization of critical section objects.
Modified: trunk/reactos/lib/ntdll/rtl/critical.c
_____
Modified: trunk/reactos/lib/ntdll/rtl/critical.c
--- trunk/reactos/lib/ntdll/rtl/critical.c 2005-01-08 06:36:03 UTC
(rev 12882)
+++ trunk/reactos/lib/ntdll/rtl/critical.c 2005-01-08 09:34:37 UTC
(rev 12883)
@@ -216,6 +216,7 @@
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 @@
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);
}
}
Show replies by date