mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-29 05:55:30 -04:00
[efi] add RISC-V support
* Also fix Coverity warnings
This commit is contained in:
parent
34b1d8a3ca
commit
6f5ea5f88f
7 changed files with 42 additions and 18 deletions
|
@ -307,7 +307,7 @@ BOOL IsBootableImage(const char* path)
|
|||
}
|
||||
img_report.image_size = (uint64_t)liImageSize.QuadPart;
|
||||
size = sizeof(wim_magic);
|
||||
SetFilePointerEx(handle, ptr, NULL, FILE_BEGIN);
|
||||
IGNORE_RETVAL(SetFilePointerEx(handle, ptr, NULL, FILE_BEGIN));
|
||||
img_report.is_windows_img = ReadFile(handle, &wim_magic, size, &size, NULL) && (wim_magic == WIM_MAGIC);
|
||||
if (img_report.is_windows_img)
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue