Author: tretiakov
Date: Thu Mar 8 22:45:32 2007
New Revision: 26039
URL:
http://svn.reactos.org/svn/reactos?rev=26039&view=rev
Log:
Forget to enter critical region
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/ntuser.c Thu Mar 8 22:45:32 2007
@@ -82,15 +82,18 @@
VOID FASTCALL UserEnterShared(VOID)
{
+ KeEnterCriticalRegion();
ExAcquireResourceSharedLite(&UserLock, TRUE);
}
VOID FASTCALL UserEnterExclusive(VOID)
{
+ KeEnterCriticalRegion();
ExAcquireResourceExclusiveLite(&UserLock, TRUE);
}
VOID FASTCALL UserLeave(VOID)
{
ExReleaseResourceLite(&UserLock);
+ KeLeaveCriticalRegion();
}