Browse Source

* Fixed memory allocation in registration

git-svn-id: trunk@16163 -
michael 15 years ago
parent
commit
38aacec93d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-extra/src/win/daemonapp.inc

+ 1 - 1
packages/fcl-extra/src/win/daemonapp.inc

@@ -385,7 +385,7 @@ Var
   RV : Integer;
   
 begin
-  GetMem(P,SizeOf(TServiceTableEntry)*FMapper.DaemonDefs.Count+1);
+  GetMem(P,SizeOf(TServiceTableEntry)*(FMapper.DaemonDefs.Count+1));
   Try
     C:=FMapper.DaemonDefs.Count;
     For I:=0 to C-1 do