[ros-diffs] [hbirr] 12883: - Fixed the initialization of critical
section objects.
hbirr at svn.reactos.com
hbirr at svn.reactos.com
Sat Jan 8 10:34:39 CET 2005
- 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);
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050108/e34edddd/attachment.html
More information about the Ros-diffs
mailing list