Fix some bugs.

svn path=/trunk/; revision=26321
This commit is contained in:
Dmitry Gorbachev 2007-04-11 08:43:34 +00:00
parent 51c632e281
commit 2a83478e2a
2 changed files with 4 additions and 4 deletions

View file

@ -104,7 +104,7 @@ typedef struct
//
// 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 @@ ExReleasePushLock(PEX_PUSH_LOCK PushLock)
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
{

View file

@ -21,7 +21,7 @@ KeInitializeGate(IN PKGATE Gate)
/* Initialize the Dispatcher Header */
KeInitializeDispatcherHeader(&Gate->Header,
GateObject,
sizeof(Gate) / sizeof(ULONG),
sizeof(KGATE) / sizeof(ULONG),
0);
}
@ -170,7 +170,7 @@ KeSignalGateBoostPriority(IN PKGATE Gate)
WaitThread = WaitBlock->Thread;
/* Check to see if the waiting thread is locked */
if (!KiTryThreadLock(WaitThread))
if (KiTryThreadLock(WaitThread))
{
/* Unlock the gate */
KiReleaseDispatcherObject(&Gate->Header);