mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Clear ATA IDENTIFY DEVICE private fields on device report.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace DiscImageChef.Core.Devices.Report
|
||||
DicConsole.WriteLine("Querying ATA IDENTIFY...");
|
||||
dev.AtaIdentify(out byte[] buffer, out _, dev.Timeout, out _);
|
||||
|
||||
mediaTest.IdentifyData = buffer;
|
||||
mediaTest.IdentifyData = ClearIdentify(buffer);
|
||||
mediaTest.IdentifyDevice = Identify.Decode(buffer);
|
||||
|
||||
if(mediaTest.IdentifyDevice.HasValue)
|
||||
@@ -584,7 +584,7 @@ namespace DiscImageChef.Core.Devices.Report
|
||||
return capabilities;
|
||||
}
|
||||
|
||||
static byte[] ClearIdentify(byte[] buffer)
|
||||
public static byte[] ClearIdentify(byte[] buffer)
|
||||
{
|
||||
byte[] empty = new byte[512];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user