[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 4 Sep 2015 15:37:15 +0000 (15:37 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 4 Sep 2015 15:37:15 +0000 (15:37 +0000)
Don't attempt to dereference a null pointer
CID 1321987

svn path=/trunk/; revision=69000

reactos/drivers/filesystems/ntfs/fcb.c

index 02bbb10..278ea3e 100644 (file)
@@ -414,7 +414,7 @@ NtfsMakeFCBFromDirEntry(PNTFS_VCB Vcb,
         pathName[FileName->NameLength] = UNICODE_NULL;
     }
 
-    Size = NtfsGetFileSize(Vcb, Record, Stream, wcslen(Stream), &AllocatedSize);
+    Size = NtfsGetFileSize(Vcb, Record, (Stream ? Stream : L""), (Stream ? wcslen(Stream) : 0), &AllocatedSize);
 
     rcFCB = NtfsCreateFCB(pathName, Stream, Vcb);
     if (!rcFCB)