mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 06:18:29 +00:00
[SETUPLIB][USETUP] Minor improvements.
- Make some partitioning functions not dependent on the selected "CurrentPartition". - Add some sanity checks. - Improve some of the "is-partitioned" checks.
This commit is contained in:
parent
c1fbc2d651
commit
29cc1843d0
5 changed files with 155 additions and 94 deletions
|
@ -697,6 +697,8 @@ FindNTOSInstallations(
|
|||
ULONG Version;
|
||||
WCHAR PathBuffer[MAX_PATH];
|
||||
|
||||
ASSERT(PartEntry->IsPartitioned && PartEntry->PartitionNumber != 0);
|
||||
|
||||
/* Set PartitionRootPath */
|
||||
RtlStringCchPrintfW(PathBuffer, ARRAYSIZE(PathBuffer),
|
||||
L"\\Device\\Harddisk%lu\\Partition%lu\\",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue