mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-18 13:20:11 +10:00
Fix an issue with incorrect logging of secure boot state
This commit is contained in:
@@ -41,8 +41,7 @@ namespace WPinternals
|
||||
{
|
||||
try
|
||||
{
|
||||
ManagementObjectCollection coll = new ManagementObjectSearcher("select * from Win32_LogicalDisk").Get();
|
||||
foreach (ManagementObject logical in coll)
|
||||
foreach (ManagementObject logical in new ManagementObjectSearcher("select * from Win32_LogicalDisk").Get())
|
||||
{
|
||||
System.Diagnostics.Debug.Print(logical["Name"].ToString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user