mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 16:59:12 +02:00
* fixed result type of StrBufSize(PWideChar) for 64 bit targets
git-svn-id: branches/cpstrrtl@25002 -
This commit is contained in:
parent
8a4b092ab9
commit
bae3c0296e
@ -428,7 +428,7 @@ function WideStrAlloc(Size: cardinal): PWideChar;
|
|||||||
inc(result,sizeof(cardinal));
|
inc(result,sizeof(cardinal));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function StrBufSize(str: pwidechar): SizeUInt;
|
function StrBufSize(str: pwidechar): cardinal;
|
||||||
begin
|
begin
|
||||||
if assigned(str) then
|
if assigned(str) then
|
||||||
result:=cardinal(pointer(str-sizeof(cardinal))^)-sizeof(cardinal)
|
result:=cardinal(pointer(str-sizeof(cardinal))^)-sizeof(cardinal)
|
||||||
|
Loading…
Reference in New Issue
Block a user