Explorar o código

Changed the memory allocation/deallocation to match the new ReAllocMem structure.

lazarus %!s(int64=26) %!d(string=hai) anos
pai
achega
ef17ea6ec2
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      fcl/inc/zstream.pp

+ 3 - 3
fcl/inc/zstream.pp

@@ -119,14 +119,14 @@ begin
   DFreeMem(P);
 end;
 
-function zlibAllocMem(AppData: Pointer; Items, Size: Integer): Pointer;cdecl;
+function zlibAllocMem(opaque:pointer; items:uInt; size:uInt):pointer;cdecl;
 begin
   Result:=DGetMem(Items*Size);
 end;
 
-procedure zlibFreeMem(AppData, Block: Pointer);cdecl;
+procedure zlibFreeMem(opaque:pointer; address:pointer);cdecl;
 begin
-  DFreeMem(Block);
+  DFreeMem(address);
 end;