ideutils: DeleteFileInteractive: dumpstack on wrong params

This commit is contained in:
mattias 2025-05-26 13:51:40 +02:00
parent 310f3efc95
commit e9d7d8bd40

View File

@ -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;