(GUI): fixed deleting of files on 64-bit systems.

This commit is contained in:
morkt
2022-04-30 11:29:22 +04:00
parent 6b0c48e30f
commit ccabf63fc4
2 changed files with 68 additions and 28 deletions

View File

@@ -1133,7 +1133,8 @@ namespace GARbro.GUI
try
{
var file_list = items.Select (entry => Path.Combine (CurrentPath, entry.Name));
GARbro.Shell.File.Delete (file_list);
if (!GARbro.Shell.File.Delete (file_list, new WindowInteropHelper(this).Handle))
throw new ApplicationException ("Delete operation failed.");
count = file_list.Count();
}
finally