mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
make the tree compilable again...
svn path=/trunk/; revision=18212
This commit is contained in:
parent
90637152d6
commit
4ca189ac66
2 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,8 @@
|
||||||
#include "ldrtypes.h"
|
#include "ldrtypes.h"
|
||||||
#include "mmtypes.h"
|
#include "mmtypes.h"
|
||||||
#include "obtypes.h"
|
#include "obtypes.h"
|
||||||
//#include "extypes.h"
|
|
||||||
#ifndef NTOS_MODE_USER
|
#ifndef NTOS_MODE_USER
|
||||||
|
#include "extypes.h"
|
||||||
#include "setypes.h"
|
#include "setypes.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ KeReleaseSemaphore(PKSEMAPHORE Semaphore,
|
||||||
LONG Adjustment,
|
LONG Adjustment,
|
||||||
BOOLEAN Wait)
|
BOOLEAN Wait)
|
||||||
{
|
{
|
||||||
LONG InitialState, ULONG State;
|
LONG InitialState, State;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
PKTHREAD CurrentThread;
|
PKTHREAD CurrentThread;
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ KeReleaseSemaphore(PKSEMAPHORE Semaphore,
|
||||||
|
|
||||||
/* Save the Old State and get new one */
|
/* Save the Old State and get new one */
|
||||||
InitialState = Semaphore->Header.SignalState;
|
InitialState = Semaphore->Header.SignalState;
|
||||||
State = InitialState + Adjustement;
|
State = InitialState + Adjustment;
|
||||||
|
|
||||||
/* Check if the Limit was exceeded */
|
/* Check if the Limit was exceeded */
|
||||||
if ((Semaphore->Limit < State) || (InitialState > State))
|
if ((Semaphore->Limit < State) || (InitialState > State))
|
||||||
|
@ -105,7 +105,7 @@ KeReleaseSemaphore(PKSEMAPHORE Semaphore,
|
||||||
Semaphore->Header.SignalState = State;
|
Semaphore->Header.SignalState = State;
|
||||||
|
|
||||||
/* Check if we should wake it */
|
/* Check if we should wake it */
|
||||||
if (!(InitialState) && !(IsListEmpty(&Semaphore->Header.WaitListHead))
|
if (!(InitialState) && !(IsListEmpty(&Semaphore->Header.WaitListHead)))
|
||||||
{
|
{
|
||||||
/* Wake the Semaphore */
|
/* Wake the Semaphore */
|
||||||
KiWaitTest(&Semaphore->Header, Increment);
|
KiWaitTest(&Semaphore->Header, Increment);
|
||||||
|
|
Loading…
Reference in a new issue