Skip to content

Commit

Permalink
Fix TDECCipher.DecodeRawByteString
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarschall authored May 5, 2024
1 parent 8d37cac commit 927061b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/DECCipherBase.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,8 @@ function TDECCipher.DecodeRawByteString(const Source: RawByteString; Format: TDE
// This has been fixed in 10.3.0 Rio
b := ValidFormat(Format).Decode(BytesOf(Source));

SetLength(Result, Length(b));

{$IFDEF HAVE_STR_LIKE_ARRAY}
DoDecode(@b[0], @Result[Low(Result)], Length(Result) * SizeOf(Result[Low(Result)]));
{$ELSE}
Expand Down

0 comments on commit 927061b

Please sign in to comment.