mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Set ATIP to be a class to ensure it is nulled properly.. Fixes #352
This commit is contained in:
@@ -67,12 +67,12 @@ namespace Aaru.Core.Devices.Dumping
|
||||
|
||||
if(!sense)
|
||||
{
|
||||
ATIP.CDATIP? atip = ATIP.Decode(cmdBuf);
|
||||
ATIP.CDATIP atip = ATIP.Decode(cmdBuf);
|
||||
|
||||
if(atip.HasValue)
|
||||
if(atip != null)
|
||||
{
|
||||
// Only CD-R and CD-RW have ATIP
|
||||
mediaType = atip.Value.DiscType ? MediaType.CDRW : MediaType.CDR;
|
||||
mediaType = atip.DiscType ? MediaType.CDRW : MediaType.CDR;
|
||||
|
||||
tmpBuf = new byte[cmdBuf.Length - 4];
|
||||
Array.Copy(cmdBuf, 4, tmpBuf, 0, cmdBuf.Length - 4);
|
||||
|
||||
Reference in New Issue
Block a user