Clean up includes in DiscIO as much as possible.

Also turned a long iterator declaration in VolumeDirectory.cpp to using auto in order to shorten it.
This commit is contained in:
Lioncash
2013-10-18 03:32:56 -04:00
parent 82fd579506
commit 207547b425
12 changed files with 19 additions and 27 deletions

View File

@ -36,8 +36,8 @@ DriveReader::DriveReader(const char *drive)
// removal while reading from it.
pmrLockCDROM.PreventMediaRemoval = TRUE;
DeviceIoControl(hDisc, IOCTL_CDROM_MEDIA_REMOVAL,
&pmrLockCDROM, sizeof(pmrLockCDROM), NULL,
0, &dwNotUsed, NULL);
&pmrLockCDROM, sizeof(pmrLockCDROM), NULL,
0, &dwNotUsed, NULL);
#endif
#else
SectorReader::SetSectorSize(2048);
@ -67,7 +67,7 @@ DriveReader::~DriveReader()
}
#else
file_.Close();
#endif
#endif
}
DriveReader *DriveReader::Create(const char *drive)