Browse Source

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

lazarus 26 years ago
parent
commit
ef17ea6ec2
1 changed files with 3 additions and 3 deletions
  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;