|
@@ -9998,14 +9998,18 @@ end;
|
|
|
|
|
|
procedure TObjectStreamConverter.Execute;
|
|
|
|
|
|
+var
|
|
|
+ Signature: LongInt;
|
|
|
+
|
|
|
begin
|
|
|
if FIndent = '' then FInDent:=' ';
|
|
|
If Not Assigned(Input) then
|
|
|
raise EReadError.Create('Missing input stream');
|
|
|
If Not Assigned(Output) then
|
|
|
raise EReadError.Create('Missing output stream');
|
|
|
- if Input.ReadDWord <> FilerSignatureInt then
|
|
|
- raise EReadError.Create('Illegal stream image');
|
|
|
+ FInput.ReadBufferData(Signature);
|
|
|
+ if Signature <> FilerSignatureInt then
|
|
|
+ raise EReadError.Create(SInvalidImage);
|
|
|
ReadObject('');
|
|
|
end;
|
|
|
|