mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Fixed the length calculation of a unicode string in vfatGetFCBForFile.
svn path=/trunk/; revision=6449
This commit is contained in:
parent
40be01c894
commit
f9e7598cc7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue