[misc] fix warnings

* MSVC x64 warnings in file.c
* Clang and MinGW warnings in badblocks
* also removed the requirement for
* also added test ID to badblocks call
This commit is contained in:
Pete Batard 2011-12-06 14:05:53 +00:00
parent e419cf9015
commit 04bf6c6b3d
8 changed files with 78 additions and 110 deletions

View file

@ -331,7 +331,8 @@ void __cdecl FormatThread(void* param)
goto out;
}
if (BadBlocks(hPhysicalDrive, SelectedDrive.DiskSize, SelectedDrive.Geometry.BytesPerSector)) {
if (BadBlocks(hPhysicalDrive, SelectedDrive.DiskSize,
SelectedDrive.Geometry.BytesPerSector, BADBLOCKS_RW)) {
// TODO: report block failure number, etc
uprintf("Bad blocks check failed.\n");
goto out;