mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:09:31 +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));
|
||||
end;
|
||||
|
||||
function StrBufSize(str: pwidechar): SizeUInt;
|
||||
function StrBufSize(str: pwidechar): cardinal;
|
||||
begin
|
||||
if assigned(str) then
|
||||
result:=cardinal(pointer(str-sizeof(cardinal))^)-sizeof(cardinal)
|
||||
|
Loading…
Reference in New Issue
Block a user