mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[USETUP] The 'DestinationDriveLetter' variable (that is just used for SetDefaultPagefile()...) just needs to be initialized at one place only.
svn path=/branches/setup_improvements/; revision=74951
This commit is contained in:
parent
0b714cbe6a
commit
3fd27d34a5
1 changed files with 5 additions and 8 deletions
|
@ -93,7 +93,8 @@ static UNICODE_STRING DestinationPath;
|
|||
static UNICODE_STRING DestinationArcPath;
|
||||
static UNICODE_STRING DestinationRootPath;
|
||||
|
||||
static WCHAR DestinationDriveLetter; // FIXME: Is it really useful??
|
||||
// FIXME: Is it really useful?? Just used for SetDefaultPagefile...
|
||||
static WCHAR DestinationDriveLetter;
|
||||
|
||||
static HINF SetupInf;
|
||||
|
||||
|
@ -1527,7 +1528,6 @@ IsDiskSizeValid(PPARTENTRY PartEntry)
|
|||
* QuitPage
|
||||
*
|
||||
* SIDEEFFECTS
|
||||
* Init DestinationDriveLetter (only if unattended or not free space is selected)
|
||||
* Set InstallShortcut (only if not unattended + free space is selected)
|
||||
*
|
||||
* RETURNS
|
||||
|
@ -1594,8 +1594,6 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
|||
return SELECT_PARTITION_PAGE; /* let the user select another partition */
|
||||
}
|
||||
|
||||
DestinationDriveLetter = (WCHAR)PartitionList->CurrentPartition->DriveLetter;
|
||||
|
||||
return SELECT_FILE_SYSTEM_PAGE;
|
||||
}
|
||||
}
|
||||
|
@ -1611,8 +1609,6 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
|||
return SELECT_PARTITION_PAGE; /* let the user select another partition */
|
||||
}
|
||||
|
||||
DestinationDriveLetter = (WCHAR)PartitionList->CurrentPartition->DriveLetter;
|
||||
|
||||
return SELECT_FILE_SYSTEM_PAGE;
|
||||
}
|
||||
}
|
||||
|
@ -1707,8 +1703,6 @@ SelectPartitionPage(PINPUT_RECORD Ir)
|
|||
return SELECT_PARTITION_PAGE; /* let the user select another partition */
|
||||
}
|
||||
|
||||
DestinationDriveLetter = (WCHAR)PartitionList->CurrentPartition->DriveLetter;
|
||||
|
||||
return SELECT_FILE_SYSTEM_PAGE;
|
||||
}
|
||||
else if (Ir->Event.KeyEvent.wVirtualKeyCode == 'P') /* P */
|
||||
|
@ -3254,6 +3248,9 @@ BuildInstallPaths(PWSTR InstallDir,
|
|||
PartEntry->PartitionNumber);
|
||||
ConcatPaths(PathBuffer, ARRAYSIZE(PathBuffer), 1, InstallDir);
|
||||
RtlCreateUnicodeString(&DestinationArcPath, PathBuffer);
|
||||
|
||||
/* Initialize DestinationDriveLetter */
|
||||
DestinationDriveLetter = (WCHAR)PartEntry->DriveLetter;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue