mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[BOOTLIB]: Fix EtfspGetDirentNameLength loops. By Victor Martinez Calvo.
CID 1341138 CORE-11178 #resolve svn path=/trunk/; revision=71285
This commit is contained in:
parent
ea332e56c0
commit
81ed2a4ade
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue