REFACTOR: Removed unneeded value sets.

This commit is contained in:
2017-12-21 16:07:20 +00:00
parent 1e1978026f
commit 5a2b6d8783
18 changed files with 22 additions and 30 deletions

View File

@@ -114,7 +114,7 @@ namespace DiscImageChef.Decoders.Sega
if(ipbin_sector.Length < 512) return null;
IPBin ipbin = new IPBin();
IPBin ipbin;
IntPtr ptr = Marshal.AllocHGlobal(512);
Marshal.Copy(ipbin_sector, 0, ptr, 512);
ipbin = (IPBin)Marshal.PtrToStructure(ptr, typeof(IPBin));

View File

@@ -91,7 +91,7 @@ namespace DiscImageChef.Decoders.Sega
if(ipbin_sector.Length < 512) return null;
IPBin ipbin = new IPBin();
IPBin ipbin;
IntPtr ptr = Marshal.AllocHGlobal(512);
Marshal.Copy(ipbin_sector, 0, ptr, 512);
ipbin = (IPBin)Marshal.PtrToStructure(ptr, typeof(IPBin));

View File

@@ -77,7 +77,7 @@ namespace DiscImageChef.Decoders.Sega
if(ipbin_sector.Length < 512) return null;
IPBin ipbin = new IPBin();
IPBin ipbin;
IntPtr ptr = Marshal.AllocHGlobal(512);
Marshal.Copy(ipbin_sector, 0, ptr, 512);
ipbin = (IPBin)Marshal.PtrToStructure(ptr, typeof(IPBin));