mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 14:49:47 +02:00
* don't call the memory manager's functions, but instead call the Sys* functions directly
git-svn-id: trunk@42797 -
This commit is contained in:
parent
f88a98e976
commit
c1e3c61af3
@ -1328,9 +1328,9 @@ end;
|
||||
|
||||
function SysAllocMem(size: ptruint): pointer;
|
||||
begin
|
||||
result := MemoryManager.GetMem(size);
|
||||
result := SysGetMem(size);
|
||||
if result<>nil then
|
||||
FillChar(result^,MemoryManager.MemSize(result),0);
|
||||
FillChar(result^,SysMemSize(result),0);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user