mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 20:36:35 +00:00
Fix some bugs.
svn path=/trunk/; revision=26321
This commit is contained in:
parent
51c632e281
commit
2a83478e2a
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue