Fixed the rollover protection for checksum indice.
This commit is contained in:
parent
c47f85c639
commit
567d3ddafb
@ -158,7 +158,7 @@ int iso_file_src_create(Ecma119Image *img, IsoFile *file, IsoFileSrc **src)
|
|||||||
fsrc->checksum_index = img->checksum_idx_counter;
|
fsrc->checksum_index = img->checksum_idx_counter;
|
||||||
} else {
|
} else {
|
||||||
fsrc->checksum_index= 0;
|
fsrc->checksum_index= 0;
|
||||||
img->checksum_idx_counter= 0x7fffffff; /* keep from rolling over */
|
img->checksum_idx_counter= 0x7ffffffe; /* keep from rolling over */
|
||||||
}
|
}
|
||||||
cret = iso_file_set_isofscx(file, (*src)->checksum_index, 0);
|
cret = iso_file_set_isofscx(file, (*src)->checksum_index, 0);
|
||||||
if (cret < 0)
|
if (cret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user