mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed a string overrun.
Patch by Hartmut Birr. svn path=/trunk/; revision=2059
This commit is contained in:
parent
372a3cc161
commit
5b04ae25a4
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue