[FASTFAT]

Don't leak reference in case of share access failure.

svn path=/trunk/; revision=65043
This commit is contained in:
Pierre Schweitzer 2014-10-27 13:39:03 +00:00
parent 8c225a0e59
commit af8bee9d61

View file

@ -443,9 +443,9 @@ VfatCreateFile(
PVFATFCB pFcb = NULL;
PVFATFCB ParentFcb = NULL;
PWCHAR c, last;
BOOLEAN PagingFileCreate = FALSE;
BOOLEAN PagingFileCreate;
BOOLEAN Dots;
BOOLEAN OpenTargetDir = FALSE;
BOOLEAN OpenTargetDir;
UNICODE_STRING FileNameU;
UNICODE_STRING PathNameU;
ULONG Attributes;
@ -633,6 +633,7 @@ VfatCreateFile(
FALSE);
if (!NT_SUCCESS(Status))
{
vfatReleaseFCB(DeviceExt, ParentFcb);
VfatCloseFile(DeviceExt, FileObject);
return Status;
}