Author: tfaber
Date: Sun Nov 22 21:46:58 2015
New Revision: 70042
URL:
http://svn.reactos.org/svn/reactos?rev=70042&view=rev
Log:
[FASTFAT]
- Don't leak FCBs, Arch ;)
Modified:
trunk/reactos/drivers/filesystems/fastfat/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Sun Nov 22 21:46:58
2015
@@ -592,9 +592,6 @@
if (!OpenTargetDir)
{
Status = VfatOpenFile(DeviceExt, &PathNameU, FileObject,
RequestedDisposition, RequestedOptions, &ParentFcb);
- if (Status == STATUS_ACCESS_DENIED ||
- Status == STATUS_OBJECT_NAME_COLLISION)
- return Status;
}
else
{
@@ -703,7 +700,9 @@
*/
if (Status == STATUS_OBJECT_PATH_NOT_FOUND ||
Status == STATUS_INVALID_PARAMETER ||
- Status == STATUS_DELETE_PENDING)
+ Status == STATUS_DELETE_PENDING ||
+ Status == STATUS_ACCESS_DENIED ||
+ Status == STATUS_OBJECT_NAME_COLLISION)
{
if (ParentFcb)
{