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;
}

View file

@ -126,6 +126,7 @@ pre a, code a {
width: 140px; /* should be <= margin-left of common-main */
padding-bottom: 20px;
overflow: hidden;
white-space: nowrap;
word-wrap: break-word;
}
.common-list {
@ -237,6 +238,7 @@ pre a, code a {
*/
.common-sidebar {
width: 100%;
white-space: normal;
}
.common-list {
padding-left: 0;
@ -264,4 +266,4 @@ pre a, code a {
.md-list-none {
padding-left: 1em;
}
}
}