Author: dgorbachev
Date: Wed Apr 11 12:43:34 2007
New Revision: 26321
URL:
http://svn.reactos.org/svn/reactos?rev=26321&view=rev
Log:
Fix some bugs.
Modified:
trunk/reactos/ntoskrnl/include/internal/ex.h
trunk/reactos/ntoskrnl/ke/gate.c
Modified: trunk/reactos/ntoskrnl/include/internal/ex.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ex.h (original)
+++ trunk/reactos/ntoskrnl/include/internal/ex.h Wed Apr 11 12:43:34 2007
@@ -104,7 +104,7 @@
//
// Detect GCC 4.1.2+
//
-#if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40102
+#if 1 // (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) < 40102
//
// Broken GCC with Alignment Bug. We'll do alignment ourselves at higher cost.
@@ -963,7 +963,7 @@
if (OldValue.Shared > 1)
{
/* Decrease the share count */
- NewValue.Value = OldValue.Value &~ EX_PUSH_LOCK_SHARE_INC;
+ NewValue.Value = OldValue.Value - EX_PUSH_LOCK_SHARE_INC;
}
else
{
Modified: trunk/reactos/ntoskrnl/ke/gate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/gate.c?rev=263…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/gate.c (original)
+++ trunk/reactos/ntoskrnl/ke/gate.c Wed Apr 11 12:43:34 2007
@@ -21,7 +21,7 @@
/* Initialize the Dispatcher Header */
KeInitializeDispatcherHeader(&Gate->Header,
GateObject,
- sizeof(Gate) / sizeof(ULONG),
+ sizeof(KGATE) / sizeof(ULONG),
0);
}
@@ -170,7 +170,7 @@
WaitThread = WaitBlock->Thread;
/* Check to see if the waiting thread is locked */
- if (!KiTryThreadLock(WaitThread))
+ if (KiTryThreadLock(WaitThread))
{
/* Unlock the gate */
KiReleaseDispatcherObject(&Gate->Header);