Browse Source

* suppress VarArgs from QueryHook function

git-svn-id: trunk@14031 -
pierre 15 years ago
parent
commit
11f73d1d7f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/gdbint/src/gdbint.pp

+ 2 - 2
packages/gdbint/src/gdbint.pp

@@ -2140,7 +2140,7 @@ begin
 end;
 end;
 
 
 
 
-function QueryHook(question : pchar; args : array of const) : longint; cdecl;
+function QueryHook(question : pchar; arg : pchar) : longint; cdecl;
 begin
 begin
   if not assigned(curr_gdb) then
   if not assigned(curr_gdb) then
     QueryHook:=0
     QueryHook:=0
@@ -2149,7 +2149,7 @@ begin
       if curr_gdb^.reset_command and (pos('Kill',question)>0) then
       if curr_gdb^.reset_command and (pos('Kill',question)>0) then
         QueryHook:=1
         QueryHook:=1
       else if pos('%s',question)>0 then
       else if pos('%s',question)>0 then
-        QueryHook:=curr_gdb^.Query(question, args[0].vpchar)
+        QueryHook:=curr_gdb^.Query(question, arg)
       else
       else
         QueryHook:=curr_gdb^.Query(question, nil);
         QueryHook:=curr_gdb^.Query(question, nil);
     end;
     end;