mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 14:39:18 +02:00
ideutils: DeleteFileInteractive: dumpstack on wrong params
This commit is contained in:
parent
310f3efc95
commit
e9d7d8bd40
@ -598,8 +598,12 @@ var
|
||||
CurFilename: String;
|
||||
Found: Boolean;
|
||||
begin
|
||||
if FileName='' then
|
||||
if (Filename='') or not FilenameIsAbsolute(FileName) then
|
||||
begin
|
||||
debugln(['Error: DeleteFileInteractive File="',Filename,'"']);
|
||||
DumpStack;
|
||||
exit(mrAbort); // Serious bug on the calling side, so abort.
|
||||
end;
|
||||
CurFilename:=Filename;
|
||||
repeat
|
||||
Result:=mrOk;
|
||||
|
Loading…
Reference in New Issue
Block a user