mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Fix some bugs.
svn path=/trunk/; revision=26321
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user