projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b746a9f
)
get the root fcb when creating a file and no parent fcb is returned
author
Thomas Bluemel
<thomas@reactsoft.com>
Sat, 3 Dec 2005 18:16:02 +0000
(18:16 +0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Sat, 3 Dec 2005 18:16:02 +0000
(18:16 +0000)
svn path=/trunk/; revision=19842
reactos/drivers/fs/vfat/create.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/fs/vfat/create.c
b/reactos/drivers/fs/vfat/create.c
index
117721c
..
c702a30
100644
(file)
--- a/
reactos/drivers/fs/vfat/create.c
+++ b/
reactos/drivers/fs/vfat/create.c
@@
-564,6
+564,11
@@
VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
RequestedDisposition == FILE_SUPERSEDE)
{
ULONG Attributes;
+ if (ParentFcb == NULL)
+ {
+ ParentFcb = vfatOpenRootFCB (DeviceExt);
+ ASSERT(ParentFcb != NULL);
+ }
Attributes = Stack->Parameters.Create.FileAttributes;
vfatSplitPathName(&PathNameU, NULL, &FileNameU);
@@
-600,7
+605,10
@@
VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
}
else
{
- vfatReleaseFCB (DeviceExt, ParentFcb);
+ if (ParentFcb)
+ {
+ vfatReleaseFCB (DeviceExt, ParentFcb);
+ }
return(Status);
}
}