Author: fireball
Date: Tue Oct 9 15:37:01 2007
New Revision: 29470
URL:
http://svn.reactos.org/svn/reactos?rev=29470&view=rev
Log:
- Null-terminate the ArcBoot path, so that it doesn't contain garbage. Makes winldr be
able to boot WinNT 4.0 (but it still hangs shortly after booting in qemu).
Modified:
branches/winldr/windows/winldr.c
Modified: branches/winldr/windows/winldr.c
URL:
http://svn.reactos.org/svn/reactos/branches/winldr/windows/winldr.c?rev=294…
==============================================================================
--- branches/winldr/windows/winldr.c (original)
+++ branches/winldr/windows/winldr.c Tue Oct 9 15:37:01 2007
@@ -95,6 +95,7 @@
/* Construct SystemRoot and ArcBoot from SystemPath */
PathSeparator = strstr(SystemPath, "\\") - SystemPath;
strncpy(ArcBoot, SystemPath, PathSeparator);
+ ArcBoot[PathSeparator] = 0;
strcpy(SystemRoot, &SystemPath[PathSeparator]);
strcat(SystemRoot, "\\");