[BOOTLIB]: Fix EtfspGetDirentNameLength loops. By Victor Martinez Calvo.

CID 1341138
CORE-11178 #resolve

svn path=/trunk/; revision=71285
This commit is contained in:
Hermès Bélusca-Maïto 2016-05-08 14:28:06 +00:00
parent ea332e56c0
commit 81ed2a4ade

View file

@ -129,7 +129,7 @@ EtfspGetDirentNameLength (
PUCHAR Pos;
RealLength = Length = DirEntry->FileIdLen;
for (Pos = &DirEntry->FileIdLen + Length; Length; --Pos)
for (Pos = DirEntry->FileId + Length - 1; Length; --Pos)
{
--Length;
@ -141,7 +141,7 @@ EtfspGetDirentNameLength (
}
Length = RealLength;
for (Pos = &DirEntry->FileIdLen + Length; Length; --Pos)
for (Pos = DirEntry->FileId + Length - 1; Length; --Pos)
{
--Length;