Skip to content

Commit

Permalink
Merge pull request #69 from danielmarschall/patch-4
Browse files Browse the repository at this point in the history
Fix TDECCipher.DecodeRawByteString
  • Loading branch information
MHumm authored Dec 24, 2024
2 parents 6c824e7 + 927061b commit a83963b
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 @@ -1186,6 +1186,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 a83963b

Please sign in to comment.