Author: hpoussin
Date: Sat Jan 17 22:48:29 2015
New Revision: 66048
URL:
http://svn.reactos.org/svn/reactos?rev=66048&view=rev
Log:
[FREELDR] PXE: fix backward seeking (broken by r66036)
Modified:
trunk/reactos/boot/freeldr/freeldr/fs/pxe.c
Modified: trunk/reactos/boot/freeldr/freeldr/fs/pxe.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/fs/px…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/fs/pxe.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/fs/pxe.c [iso-8859-1] Sat Jan 17 22:48:29 2015
@@ -163,9 +163,6 @@
/* Retrieve the path length without NULL terminator */
PathLen = (Path ? min(strlen(Path), sizeof(_OpenFileName) - 1) : 0);
- /* Zero out the file name */
- RtlZeroMemory(_OpenFileName, sizeof(_OpenFileName));
-
/* Lowercase the path and always use slashes as separators */
for (i = 0; i < PathLen; i++)
{
@@ -174,6 +171,9 @@
else
_OpenFileName[i] = tolower(Path[i]);
}
+
+ /* Zero out rest of the file name */
+ RtlZeroMemory(_OpenFileName + PathLen, sizeof(_OpenFileName) - PathLen);
RtlZeroMemory(&sizeData, sizeof(sizeData));
sizeData.ServerIPAddress = _ServerIP;