mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
[NTOSKRNL]: I fail.
svn path=/trunk/; revision=57285
This commit is contained in:
parent
17fd92fc7b
commit
f8b44df7df
1 changed files with 6 additions and 1 deletions
|
@ -184,16 +184,21 @@ extern PSECURITY_DESCRIPTOR SeUnrestrictedSd;
|
||||||
|
|
||||||
|
|
||||||
#define SepAcquireTokenLockExclusive(Token) \
|
#define SepAcquireTokenLockExclusive(Token) \
|
||||||
|
{ \
|
||||||
KeEnterCriticalRegion(); \
|
KeEnterCriticalRegion(); \
|
||||||
ExAcquireResourceExclusive(((PTOKEN)Token)->TokenLock, TRUE); \
|
ExAcquireResourceExclusive(((PTOKEN)Token)->TokenLock, TRUE); \
|
||||||
|
}
|
||||||
#define SepAcquireTokenLockShared(Token) \
|
#define SepAcquireTokenLockShared(Token) \
|
||||||
|
{ \
|
||||||
KeEnterCriticalRegion(); \
|
KeEnterCriticalRegion(); \
|
||||||
ExAcquireResourceShared(((PTOKEN)Token)->TokenLock, TRUE); \
|
ExAcquireResourceShared(((PTOKEN)Token)->TokenLock, TRUE); \
|
||||||
|
}
|
||||||
|
|
||||||
#define SepReleaseTokenLock(Token) \
|
#define SepReleaseTokenLock(Token) \
|
||||||
|
{ \
|
||||||
ExReleaseResource(((PTOKEN)Token)->TokenLock); \
|
ExReleaseResource(((PTOKEN)Token)->TokenLock); \
|
||||||
KeLeaveCriticalRegion(); \
|
KeLeaveCriticalRegion(); \
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Token Functions
|
// Token Functions
|
||||||
|
|
Loading…
Reference in a new issue