Various warning cleanups

This commit is contained in:
cold-brewed
2023-08-12 11:42:11 -04:00
parent 24ff4a2498
commit 99cdd3a16a
6 changed files with 11 additions and 8 deletions

View File

@@ -439,13 +439,14 @@ MVHDAPI int
mvhd_file_is_vhd(FILE* f)
{
uint8_t con_str[8];
size_t res;
if (f == NULL) {
return 0;
}
mvhd_fseeko64(f, -MVHD_FOOTER_SIZE, SEEK_END);
fread(con_str, sizeof con_str, 1, f);
res = fread(con_str, sizeof con_str, 1, f);
if (mvhd_is_conectix_str(con_str)) {
return 1;
}