[USETUP]
authorEric Kohl <eric.kohl@reactos.org>
Tue, 30 Dec 2014 20:17:27 +0000 (20:17 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 30 Dec 2014 20:17:27 +0000 (20:17 +0000)
InstallDirectoryPage1: Initialize DestinationRootPath. ReactOS can be installed on an existing partition again.
CORE-8984 #resolve

svn path=/trunk/; revision=65913

reactos/base/setup/usetup/interface/usetup.c

index 16e7388..9c21f00 100644 (file)
@@ -2969,6 +2969,16 @@ InstallDirectoryPage1(PWCHAR InstallDir,
     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);