[ros-diffs] [fireball] 29470: - 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).
fireball at svn.reactos.org
fireball at svn.reactos.org
Tue Oct 9 13:37:02 CEST 2007
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=29470&r1=29469&r2=29470&view=diff
==============================================================================
--- 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, "\\");
More information about the Ros-diffs
mailing list