Relax checksum test in disk.restore()

This commit is contained in:
Jeff Parsons 2014-11-10 15:10:58 -08:00 • committed by jeffpar
commit 605146075b
12 changed files with 1108 additions and 1080 deletions

View file

@ -1554,7 +1554,7 @@ Disk.prototype.restore = function(deltas)
* just as well, since v1.01 also failed to properly deal with situations where the user mounted different diskette(s)
* prior to exiting (hopefully fixed in v1.02).
*/
else if (aDiskInfo[1] != null && aDiskInfo[1] != this.dwChecksum) {
else if (aDiskInfo[1] != null && this.dwChecksum != null && aDiskInfo[1] != this.dwChecksum) {
sReason = "original checksum (" + aDiskInfo[1] + ") differs from current checksum (" + this.dwChecksum + ")";
nChanges = -1;
}