Author: ekohl
Date: Tue Dec 30 20:17:27 2014
New Revision: 65913
URL:
http://svn.reactos.org/svn/reactos?rev=65913&view=rev
Log:
[USETUP]
InstallDirectoryPage1: Initialize DestinationRootPath. ReactOS can be installed on an
existing partition again.
CORE-8984 #resolve
Modified:
trunk/reactos/base/setup/usetup/interface/usetup.c
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] Tue Dec 30 20:17:27
2014
@@ -2969,6 +2969,16 @@
RtlCreateUnicodeString(&InstallPath,
InstallDir);
+ /* Set DestinationRootPath */
+ RtlFreeUnicodeString(&DestinationRootPath);
+ swprintf(PathBuffer,
+ L"\\Device\\Harddisk%lu\\Partition%lu",
+ DiskEntry->DiskNumber,
+ PartEntry->PartitionNumber);
+ RtlCreateUnicodeString(&DestinationRootPath,
+ PathBuffer);
+ DPRINT("DestinationRootPath: %wZ\n", &DestinationRootPath);
+
/* Create 'DestinationPath' string */
RtlFreeUnicodeString(&DestinationPath);
wcscpy(PathBuffer, DestinationRootPath.Buffer);