From 390ff4d22d567a8807d8b9cf5378a05637ba06c7 Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Mon, 9 Sep 2019 13:45:00 +0200 Subject: [PATCH] add to github --- README.md | 1 + WinPart/Program.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..75d0961 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# WinPart diff --git a/WinPart/Program.cs b/WinPart/Program.cs index eb9e28a..e9d8b7e 100644 --- a/WinPart/Program.cs +++ b/WinPart/Program.cs @@ -146,7 +146,7 @@ namespace WinPart { logicalDrives = new List() { }; foreach (ManagementObject m in new ManagementObjectSearcher(string.Format("associators of {{{0}}} where AssocClass = Win32_LogicalDiskToPartition", MO.Path.RelativePath)).Get()) logicalDrives.Add(new LogicalDrive().getFromMO(m, program)); - name = MO.ToString(); + name = (string)MO.Properties["Type"].Value; return this; }