Commit in reactos/ntoskrnl/se on MAIN
semgr.c+3-11.50 -> 1.51
add missing KeEnter/LeaveCriticalRegion before/after aquireing/releasing resource lock

reactos/ntoskrnl/se
semgr.c 1.50 -> 1.51
diff -u -r1.50 -r1.51
--- semgr.c	12 Nov 2004 12:05:05 -0000	1.50
+++ semgr.c	21 Nov 2004 18:35:05 -0000	1.51
@@ -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 @@
 VOID STDCALL
 SeLockSubjectContext(IN PSECURITY_SUBJECT_CONTEXT SubjectContext)
 {
+  KeEnterCriticalRegion();
   ExAcquireResourceExclusiveLite(&SepSubjectContextLock, TRUE);
 }
 
@@ -238,6 +239,7 @@
 SeUnlockSubjectContext(IN PSECURITY_SUBJECT_CONTEXT SubjectContext)
 {
   ExReleaseResourceLite(&SepSubjectContextLock);
+  KeLeaveCriticalRegion();
 }
 
 
CVSspam 0.2.8