[misc] various small improvements

* Less scary message from bad blocks
* Better error report for read/write_sectors
* Fix a WDK warning
This commit is contained in:
Pete Batard 2012-11-03 17:22:28 +00:00
parent 261834e31f
commit 8dc5429d9f
5 changed files with 11 additions and 9 deletions

View file

@ -64,7 +64,7 @@ HANDLE GetDriveHandle(DWORD DriveIndex, char* DriveLetter, BOOL bWriteAccess, BO
}
DriveIndex -= DRIVE_INDEX_MIN;
// If no drive letter is requested, open a phyical drive
// If no drive letter is requested, open a physical drive
if (DriveLetter == NULL) {
safe_sprintf(physical_drive, sizeof(physical_drive), "\\\\.\\PHYSICALDRIVE%d", DriveIndex);
hDrive = CreateFileA(physical_drive, GENERIC_READ|(bWriteAccess?GENERIC_WRITE:0),