Author: pschweitzer
Date: Sat Oct 11 18:00:46 2014
New Revision: 64678
URL:
http://svn.reactos.org/svn/reactos?rev=64678&view=rev
Log:
[NTFS]
Return found FCB on successful file opening
Modified:
trunk/reactos/drivers/filesystems/ntfs/create.c
Modified: trunk/reactos/drivers/filesystems/ntfs/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/create.c [iso-8859-1] Sat Oct 11 18:00:46 2014
@@ -78,14 +78,17 @@
NTSTATUS
NtfsOpenFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject,
- PWSTR FileName)
+ PWSTR FileName,
+ PNTFS_FCB * FoundFCB)
{
PNTFS_FCB ParentFcb;
PNTFS_FCB Fcb;
NTSTATUS Status;
PWSTR AbsFileName = NULL;
- DPRINT("NtfsOpenFile(%p, %p, %S)\n", DeviceExt, FileObject, FileName);
+ DPRINT1("NtfsOpenFile(%p, %p, %S)\n", DeviceExt, FileObject, FileName);
+
+ *FoundFCB = NULL;
if (FileObject->RelatedFileObject)
{
@@ -143,6 +146,8 @@
if (AbsFileName)
ExFreePool(AbsFileName);
+ *FoundFCB = Fcb;
+
return Status;
}
@@ -160,11 +165,11 @@
PFILE_OBJECT FileObject;
ULONG RequestedDisposition;
ULONG RequestedOptions;
-// PFCB Fcb;
+ PNTFS_FCB Fcb;
// PWSTR FileName;
NTSTATUS Status;
- DPRINT("NtfsCreateFile() called\n");
+ DPRINT1("NtfsCreateFile(%p, %p) called\n", DeviceObject, Irp);
DeviceExt = DeviceObject->DeviceExtension;
ASSERT(DeviceExt);
@@ -213,7 +218,8 @@
Status = NtfsOpenFile(DeviceExt,
FileObject,
- FileObject->FileName.Buffer);
+ FileObject->FileName.Buffer,
+ &Fcb);
/*
* If the directory containing the file to open doesn't exist then