mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Convert variables to auto setters.
This commit is contained in:
@@ -43,18 +43,18 @@ namespace DiscImageChef.Devices
|
||||
/// </summary>
|
||||
~Device()
|
||||
{
|
||||
if(fd == null) return;
|
||||
if(FileHandle == null) return;
|
||||
|
||||
switch(platformId)
|
||||
switch(PlatformId)
|
||||
{
|
||||
case Interop.PlatformID.Win32NT:
|
||||
Windows.Extern.CloseHandle((SafeFileHandle)fd);
|
||||
Windows.Extern.CloseHandle((SafeFileHandle)FileHandle);
|
||||
break;
|
||||
case Interop.PlatformID.Linux:
|
||||
Linux.Extern.close((int)fd);
|
||||
Linux.Extern.close((int)FileHandle);
|
||||
break;
|
||||
case Interop.PlatformID.FreeBSD:
|
||||
FreeBSD.Extern.cam_close_device((IntPtr)fd);
|
||||
FreeBSD.Extern.cam_close_device((IntPtr)FileHandle);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user