mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
add missing KeEnter/LeaveCriticalRegion before/after aquireing/releasing resource lock
svn path=/trunk/; revision=11755
This commit is contained in:
parent
0c5a9ba4f5
commit
24dc4f3595
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: semgr.c,v 1.50 2004/11/12 12:05:05 ekohl Exp $
|
||||
/* $Id: semgr.c,v 1.51 2004/11/21 18:35:05 gdalsnes Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -227,6 +227,7 @@ SeCaptureSubjectContext(OUT PSECURITY_SUBJECT_CONTEXT SubjectContext)
|
|||
VOID STDCALL
|
||||
SeLockSubjectContext(IN PSECURITY_SUBJECT_CONTEXT SubjectContext)
|
||||
{
|
||||
KeEnterCriticalRegion();
|
||||
ExAcquireResourceExclusiveLite(&SepSubjectContextLock, TRUE);
|
||||
}
|
||||
|
||||
|
@ -238,6 +239,7 @@ VOID STDCALL
|
|||
SeUnlockSubjectContext(IN PSECURITY_SUBJECT_CONTEXT SubjectContext)
|
||||
{
|
||||
ExReleaseResourceLite(&SepSubjectContextLock);
|
||||
KeLeaveCriticalRegion();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue