[misc] fix WDK compilation

* Also ensure that the VHD extension is properly set on proposed dump name
This commit is contained in:
Pete Batard 2015-06-08 02:42:02 +01:00
parent 4f0e8a24a8
commit 4c8cd053f0
3 changed files with 14 additions and 11 deletions

View file

@ -289,9 +289,9 @@ BOOL IsHDImage(const char* path)
goto out;
}
iso_report.is_bootable_img = IsCompressedBootableImage(path);
iso_report.is_bootable_img = (BOOLEAN)IsCompressedBootableImage(path);
if (iso_report.compression_type == BLED_COMPRESSION_NONE)
iso_report.is_bootable_img = AnalyzeMBR(handle, "Image");
iso_report.is_bootable_img = (BOOLEAN)AnalyzeMBR(handle, "Image");
if (!GetFileSizeEx(handle, &liImageSize)) {
uprintf("Could not get image size: %s", WindowsErrorString());