You've already forked lazarus-ccr
Fixed a bug in UnloadDIFArray when a file open was not successful.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2111 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -501,6 +501,11 @@ var
|
|||||||
NextDIFC: SECT;
|
NextDIFC: SECT;
|
||||||
Index: SizeUint;
|
Index: SizeUint;
|
||||||
begin
|
begin
|
||||||
|
if not Assigned(FDIFArray) then begin
|
||||||
|
//Nothing to be freed.
|
||||||
|
Result:=true;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
//The first DIF is an special one and do not need to be
|
//The first DIF is an special one and do not need to be
|
||||||
//written as it is written with the header updates.
|
//written as it is written with the header updates.
|
||||||
FDIFArray[0]:=PSECT(@FHeader._sectFat[0]);
|
FDIFArray[0]:=PSECT(@FHeader._sectFat[0]);
|
||||||
|
Reference in New Issue
Block a user