mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:53:22 +00:00
[FASTFAT]
Don't leak reference in case of share access failure. svn path=/trunk/; revision=65043
This commit is contained in:
parent
8c225a0e59
commit
af8bee9d61
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue