Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matt-wu/Ext3Fsd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wu <matt@ext2fsd.com>2011-02-01 16:21:57 +0300
committerMatt Wu <matt@ext2fsd.com>2011-02-01 16:21:57 +0300
commitb7b76d7e06b111dd99c8747118ed6dd4f25bee27 (patch)
tree06c577e71246db42d056d3f78d12b4248477be18 /Ext3Fsd/read.c
parentabd6c07223688f426f95bdc39104b42ee3b7740f (diff)
Ext3Fsd Version 0.49e
1, FIXME: Possible memory leak for Mcbs of symlinks 2, IMPROVEMENT: don't hold global lock when deleting a file
Diffstat (limited to 'Ext3Fsd/read.c')
-rw-r--r--Ext3Fsd/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ext3Fsd/read.c b/Ext3Fsd/read.c
index a455848..e3528b3 100644
--- a/Ext3Fsd/read.c
+++ b/Ext3Fsd/read.c
@@ -538,7 +538,8 @@ Ext2ReadFile(IN PEXT2_IRP_CONTEXT IrpContext)
DEBUG(DL_INF, ("Ext2ReadFile: reading %wZ Off=%I64xh Len=%xh Paging=%xh Nocache=%xh\n",
&Fcb->Mcb->ShortName, ByteOffset.QuadPart, Length, PagingIo, Nocache));
- if (IsSymLink(Fcb) && IsFileDeleted(Fcb->Mcb->Target)) {
+ if ((IsSymLink(Fcb) && IsFileDeleted(Fcb->Mcb->Target)) ||
+ IsFileDeleted(Fcb->Mcb)) {
Status = STATUS_FILE_DELETED;
__leave;
}