Opening vhd in binary mode might help...

This commit is contained in:
shermp
2019-06-11 23:41:53 +12:00
parent f998b10eb7
commit 236ff29c13

View File

@@ -164,7 +164,7 @@ MVHDMeta* mvhd_open(const char* path, bool readonly, int* err) {
*err = MVHD_ERR_MEM;
goto end;
}
vhdm->f = readonly ? fopen64(path, "r") : fopen64(path, "r+");
vhdm->f = readonly ? fopen64(path, "rb") : fopen64(path, "rb+");
if (vhdm->f == NULL) {
*err = MVHD_ERR_FILE;
goto cleanup_vhdm;