bug fix for bug #11199, should remove partially created output file.

This commit is contained in:
beard%netscape.com 2000-01-17 04:13:05 +00:00
parent c80b422504
commit ccbba8bc22

View File

@ -226,6 +226,11 @@ static CWResult Compile(CWPluginContext context)
objectData.objectfile = &gOutputFile;
err = CWStoreObjectData(context, fileNum, &objectData);
} else {
// an error occured, delete the output file, which might be a partial file.
if (gOutputFile.name[0] != 0) {
::FSpDelete(&gOutputFile);
}
}
delete[] gSourcePath;