mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 03:51:41 +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;
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue