mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +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) \
|
||||
{ \
|
||||
KeEnterCriticalRegion(); \
|
||||
ExAcquireResourceExclusive(((PTOKEN)Token)->TokenLock, TRUE); \
|
||||
|
||||
}
|
||||
#define SepAcquireTokenLockShared(Token) \
|
||||
{ \
|
||||
KeEnterCriticalRegion(); \
|
||||
ExAcquireResourceShared(((PTOKEN)Token)->TokenLock, TRUE); \
|
||||
}
|
||||
|
||||
#define SepReleaseTokenLock(Token) \
|
||||
{ \
|
||||
ExReleaseResource(((PTOKEN)Token)->TokenLock); \
|
||||
KeLeaveCriticalRegion(); \
|
||||
}
|
||||
|
||||
//
|
||||
// Token Functions
|
||||
|
|
Loading…
Reference in a new issue