* Check if compilation has failed

git-svn-id: trunk@16892 -
This commit is contained in:
joost 2011-02-08 09:32:32 +00:00
parent 527dd56b28
commit f05ccc13b5

View File

@ -1222,6 +1222,7 @@ var
end; end;
begin begin
result := -1;
try try
M := TMemoryStream.Create; M := TMemoryStream.Create;
BytesRead := 0; BytesRead := 0;
@ -1242,6 +1243,7 @@ begin
// read last part // read last part
repeat repeat
until ReadFromStream = 0; until ReadFromStream = 0;
result := P.ExitStatus;
finally finally
P.Free; P.Free;
M.Free; M.Free;