mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
TSHFileOpStruct.pFrom needs a trailing nul char, see https://stackoverflow.com/a/1594859/4110077 and/or https://docs.microsoft.com/de-de/windows/win32/api/shellapi/ns-shellapi-shfileopstructa?redirectedfrom=MSDN#members
This commit is contained in:
@ -613,7 +613,7 @@ var
|
|||||||
begin
|
begin
|
||||||
FillChar(fos, SizeOf(fos), 0);
|
FillChar(fos, SizeOf(fos), 0);
|
||||||
fos.wFunc := FO_DELETE;
|
fos.wFunc := FO_DELETE;
|
||||||
fos.pFrom := PChar(sFileName);
|
fos.pFrom := PChar(sFileName + #0);
|
||||||
fos.fFlags := FOF_ALLOWUNDO or FOF_NOCONFIRMATION or FOF_SILENT;
|
fos.fFlags := FOF_ALLOWUNDO or FOF_NOCONFIRMATION or FOF_SILENT;
|
||||||
Result := (0 = ShFileOperation(fos));
|
Result := (0 = ShFileOperation(fos));
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user