Alter mvhd_calculate_geometry to use bytes as param

This commit is contained in:
shermp
2019-11-05 19:29:57 +13:00
parent cf010b6a63
commit 437f79e923
3 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ int main(int argc, char* argv[]) {
MVHDMeta* vhdm = mvhd_open(path, false, &err);
mvhd_close(vhdm);
/* Creation Tests */
MVHDGeom geom = mvhd_calculate_geometry(512);
MVHDGeom geom = mvhd_calculate_geometry(512 * 1024 * 1024);
vhdm = mvhd_create_sparse("C:/StandaloneProg/pcem/Images/minivhd/sparse.vhd", geom, &err);
if (vhdm == NULL) {
printf("Failed with exit code: %d", err);