Author: hbelusca
Date: Sun May 8 14:28:06 2016
New Revision: 71285
URL:
http://svn.reactos.org/svn/reactos?rev=71285&view=rev
Log:
[BOOTLIB]: Fix EtfspGetDirentNameLength loops. By Victor Martinez Calvo.
CID 1341138
CORE-11178 #resolve
Modified:
trunk/reactos/boot/environ/lib/io/etfs.c
Modified: trunk/reactos/boot/environ/lib/io/etfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/lib/io/etfs.c…
==============================================================================
--- trunk/reactos/boot/environ/lib/io/etfs.c [iso-8859-1] (original)
+++ trunk/reactos/boot/environ/lib/io/etfs.c [iso-8859-1] Sun May 8 14:28:06 2016
@@ -129,7 +129,7 @@
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 @@
}
Length = RealLength;
- for (Pos = &DirEntry->FileIdLen + Length; Length; --Pos)
+ for (Pos = DirEntry->FileId + Length - 1; Length; --Pos)
{
--Length;