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:
parent
a917bf3e2d
commit
4e41ec610f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user