Author: fireball
Date: Mon Dec 27 18:14:24 2010
New Revision: 50168
URL: http://svn.reactos.org/svn/reactos?rev=50168&view=rev
Log:
[FASTFAT_NEW]
- Some fixes to the previous commit.
Modified:
trunk/reactos/drivers/filesystems/fastfat_new/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat_new/create.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat_new/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat_new/create.c [iso-8859-1] Mon Dec 27 18:14:24 2010
@@ -1106,6 +1106,9 @@
Status = STATUS_SUCCESS;
else
Status = STATUS_UNMAPPABLE_CHARACTER;
+
+ /* First run init is done */
+ FirstRun = FALSE;
}
else
{
@@ -1158,8 +1161,9 @@
UNIMPLEMENTED;
}
- /* Check, if path is a directory or a file */
+ /* Check, if path is a existing directory or file */
if (FfError == FF_ERR_FILE_OBJECT_IS_A_DIR ||
+ FfError == FF_ERR_FILE_ALREADY_OPEN ||
FfError == FF_ERR_NONE)
{
if (FfError == FF_ERR_FILE_OBJECT_IS_A_DIR)
@@ -1266,7 +1270,18 @@
}
/* We come here only in the case when a new file is created */
- ASSERT(FALSE);
+ //ASSERT(FALSE);
+ DPRINT1("TODO: Create a new file/directory, called '%wZ'\n", &IrpSp->FileObject->FileName);
+
+ Status = STATUS_NOT_IMPLEMENTED;
+
+ /* Unlock VCB */
+ FatReleaseVcb(IrpContext, Vcb);
+
+ /* Complete the request */
+ FatCompleteRequest(IrpContext, Irp, Status);
+
+ return Status;
}
NTSTATUS