You've already forked lazarus-ccr
Fix Binary Format optional object read failing.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4268 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1459,11 +1459,12 @@ var
|
|||||||
begin
|
begin
|
||||||
stk := StackTop();
|
stk := StackTop();
|
||||||
locNode := stk.Find(AScopeName);
|
locNode := stk.Find(AScopeName);
|
||||||
if not Assigned(locNode) then begin
|
if (locNode <> nil) then begin
|
||||||
Error(SERR_ScopeNotFound,[AScopeName]);
|
|
||||||
end;
|
|
||||||
PushStack(locNode,stObject);
|
PushStack(locNode,stObject);
|
||||||
Result := StackTop().GetItemCount();
|
Result := StackTop().GetItemCount();
|
||||||
|
end else begin
|
||||||
|
Result := -1;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TBaseBinaryFormatter.BeginArrayRead(
|
function TBaseBinaryFormatter.BeginArrayRead(
|
||||||
|
Reference in New Issue
Block a user