Author: fireball
Date: Tue Apr 29 15:01:38 2008
New Revision: 33193
URL:
http://svn.reactos.org/svn/reactos?rev=33193&view=rev
Log:
- Enter into critical region before acquiring the resource.
See issue #3193 for more details.
Modified:
trunk/reactos/drivers/filesystems/cdfs/cleanup.c
Modified: trunk/reactos/drivers/filesystems/cdfs/cleanup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/cleanup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/cleanup.c [iso-8859-1] Tue Apr 29 15:01:38
2008
@@ -79,11 +79,13 @@
FileObject = Stack->FileObject;
DeviceExtension = DeviceObject->DeviceExtension;
+ KeEnterCriticalRegion();
ExAcquireResourceExclusiveLite(&DeviceExtension->DirResource, TRUE);
Status = CdfsCleanupFile(DeviceExtension, FileObject);
ExReleaseResourceLite(&DeviceExtension->DirResource);
+ KeLeaveCriticalRegion();
ByeBye: