This commit is contained in:
Valentin Charbonnier 2017-08-13 23:36:15 +02:00
parent 9e198d1ba7
commit 9d462b60f5

View file

@ -355,8 +355,7 @@ namespace Cosmos.System.FileSystem
for (int i = 0; i < mPartitions.Count; i++) for (int i = 0; i < mPartitions.Count; i++)
{ {
string xRootPath = string.Concat(i, VolumeSeparatorChar, DirectorySeparatorChar); string xRootPath = string.Concat(i, VolumeSeparatorChar, DirectorySeparatorChar);
ulong Size = mPartitions[i].BlockCount * mPartitions[i].BlockSize / 1024 / 1024; var xSize = (long)(mPartitions[i].BlockCount * mPartitions[i].BlockSize / 1024 / 1024);
long xSize = (long)Size;
switch (FileSystem.GetFileSystemType(mPartitions[i])) switch (FileSystem.GetFileSystemType(mPartitions[i]))
{ {
case FileSystemType.FAT: case FileSystemType.FAT: