Fix an issue with incorrect logging of secure boot state

This commit is contained in:
Gustave Monce
2021-08-13 13:21:15 +02:00
parent 8293c18406
commit 668a9b7fe2
10 changed files with 12 additions and 26 deletions
+1 -3
View File
@@ -64,9 +64,7 @@ namespace MadWizard.WinUSBNet.API
}
// Store the device name in a String.
string deviceNameString = new(devBroadcastDeviceInterface.dbcc_name, 0, stringSize);
return deviceNameString;
return (string)(new(devBroadcastDeviceInterface.dbcc_name, 0, stringSize));
}
else if (devBroadcastHeader.dbch_devicetype == DBT_DEVTYP_VOLUME)
{