Fixed a string overrun.

Patch by Hartmut Birr.

svn path=/trunk/; revision=2059
This commit is contained in:
Eric Kohl 2001-07-14 18:21:23 +00:00
parent 372a3cc161
commit 5b04ae25a4

View file

@ -1,4 +1,4 @@
/* $Id: fcb.c,v 1.4 2001/07/05 01:51:52 rex Exp $
/* $Id: fcb.c,v 1.5 2001/07/14 18:21:23 ekohl Exp $
*
*
* FILE: fcb.c
@ -584,7 +584,8 @@ vfatGetFCBForFile (PDEVICE_EXTENSION pVCB,
{
*pParentFCB = parentFCB;
*pFCB = NULL;
if (vfatGetNextPathElement (vfatGetNextPathElement (currentElement) + 1) == 0)
currentElement = vfatGetNextPathElement(currentElement);
if (*currentElement == L'\0' || vfatGetNextPathElement(currentElement + 1) == 0)
{
return STATUS_OBJECT_NAME_NOT_FOUND;
}