fix debug crc generation

This commit is contained in:
Bill Currie 2001-07-18 20:31:55 +00:00
parent 3eedd3d8fc
commit 5c31fbf366

View file

@ -359,13 +359,14 @@ WriteData (int crc)
fseek (h, 0, SEEK_SET);
SafeWrite (h, &progs, sizeof (progs));
fclose (h);
fseek (h, 0, SEEK_SET);
if (!options.debug) {
fclose (h);
return;
}
h = SafeOpenRead (destfile);
debug.version = LittleLong (PROG_DEBUG_VERSION);
CRC_Init (&debug.crc);
while ((i = fgetc (h)) != EOF)