From f9e7598cc7e118b961877409ea94ad2520932396 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 28 Oct 2003 20:21:21 +0000 Subject: [PATCH] - Fixed the length calculation of a unicode string in vfatGetFCBForFile. svn path=/trunk/; revision=6449 --- reactos/drivers/fs/vfat/fcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/fs/vfat/fcb.c b/reactos/drivers/fs/vfat/fcb.c index cf52a071979..6560f191d74 100644 --- a/reactos/drivers/fs/vfat/fcb.c +++ b/reactos/drivers/fs/vfat/fcb.c @@ -1,4 +1,4 @@ -/* $Id: fcb.c,v 1.34 2003/10/11 17:51:56 hbirr Exp $ +/* $Id: fcb.c,v 1.35 2003/10/28 20:21:21 hbirr Exp $ * * * FILE: drivers/fs/vfat/fcb.c @@ -623,7 +623,7 @@ vfatGetFCBForFile (PDEVICE_EXTENSION pVCB, if (curr > pFileNameU->Buffer) { NameU.Buffer = pFileNameU->Buffer; - NameU.MaximumLength = NameU.Length = (curr - pFileNameU->Buffer - 1) * sizeof(WCHAR); + NameU.MaximumLength = NameU.Length = (curr - pFileNameU->Buffer) * sizeof(WCHAR); FCB = vfatGrabFCBFromTable(pVCB, &NameU); } else