[SETUPLIB][USETUP] Minor improvements.
[reactos.git] / base / setup / lib / utils / osdetect.c
index 8dd35cd..d191c58 100644 (file)
@@ -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\\",