mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
* Bugfix: Correct cast when retrieving wide data from buffer is PWideChar.
* Bugfix: FBlobSize is in bytes, SetString expects a character count.
This commit is contained in:
@@ -2835,7 +2835,7 @@ begin
|
||||
//Result := GetString;
|
||||
if (FBlobSize > 0) and Assigned(FBlobData) then
|
||||
// Note: SetString has a WideString overload. There is no SetWideString.
|
||||
System.SetString(Result, PChar(FBlobData), FBlobSize)
|
||||
System.SetString(Result, PWideChar(FBlobData), FBlobSize div 2)
|
||||
else Result := '';
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user