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

git-svn-id: svn://10.0.0.236/trunk@57992 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 2000-01-17 04:13:05 +00:00
parent a917bf3e2d
commit 4e41ec610f

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;