mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:15:59 +00:00
Fixed a minor bug in updEntry.
svn path=/trunk/; revision=3036
This commit is contained in:
parent
f3e094f2f0
commit
b971a7adc6
1 changed files with 2 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: dirwr.c,v 1.25 2002/04/27 19:25:57 hbirr Exp $
|
/* $Id: dirwr.c,v 1.26 2002/06/10 21:19:18 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -46,10 +46,6 @@ NTSTATUS updEntry (PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT pFileObject)
|
||||||
((PVFATCCB)(pFileObject->FsContext2))->pFcb->PathName);
|
((PVFATCCB)(pFileObject->FsContext2))->pFcb->PathName);
|
||||||
status = vfatGetFCBForFile(DeviceExt, &pDirFcb, &pFcb,
|
status = vfatGetFCBForFile(DeviceExt, &pDirFcb, &pFcb,
|
||||||
((PVFATCCB)(pFileObject->FsContext2))->pFcb->PathName);
|
((PVFATCCB)(pFileObject->FsContext2))->pFcb->PathName);
|
||||||
if (pFcb != NULL)
|
|
||||||
{
|
|
||||||
vfatReleaseFCB(DeviceExt, pFcb);
|
|
||||||
}
|
|
||||||
if (!NT_SUCCESS(status))
|
if (!NT_SUCCESS(status))
|
||||||
{
|
{
|
||||||
if (pDirFcb != NULL)
|
if (pDirFcb != NULL)
|
||||||
|
@ -71,6 +67,7 @@ NTSTATUS updEntry (PDEVICE_EXTENSION DeviceExt, PFILE_OBJECT pFileObject)
|
||||||
else
|
else
|
||||||
DPRINT1 ("Failed write to \'%S\'.\n", pDirFcb->PathName);
|
DPRINT1 ("Failed write to \'%S\'.\n", pDirFcb->PathName);
|
||||||
vfatReleaseFCB(DeviceExt, pDirFcb);
|
vfatReleaseFCB(DeviceExt, pDirFcb);
|
||||||
|
vfatReleaseFCB(DeviceExt, pFcb);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue