mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 10:33:15 +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
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ EtfspGetDirentNameLength (
|
||||||
PUCHAR Pos;
|
PUCHAR Pos;
|
||||||
|
|
||||||
RealLength = Length = DirEntry->FileIdLen;
|
RealLength = Length = DirEntry->FileIdLen;
|
||||||
for (Pos = &DirEntry->FileIdLen + Length; Length; --Pos)
|
for (Pos = DirEntry->FileId + Length - 1; Length; --Pos)
|
||||||
{
|
{
|
||||||
--Length;
|
--Length;
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ EtfspGetDirentNameLength (
|
||||||
}
|
}
|
||||||
|
|
||||||
Length = RealLength;
|
Length = RealLength;
|
||||||
for (Pos = &DirEntry->FileIdLen + Length; Length; --Pos)
|
for (Pos = DirEntry->FileId + Length - 1; Length; --Pos)
|
||||||
{
|
{
|
||||||
--Length;
|
--Length;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue