From 5d0dff54982b174d382aca8da00393273bc7b3e5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Sep 2020 13:21:50 +0300 Subject: DeleteDirectoryTreeW - new function that deletes a folder with all subfolders (recursively) --- plugins/Toaster/src/main.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'plugins/Toaster') diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp index 470399a83d..10dea8e278 100644 --- a/plugins/Toaster/src/main.cpp +++ b/plugins/Toaster/src/main.cpp @@ -31,19 +31,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_POPUP, static int OnPreShutdown(WPARAM, LPARAM) { CleanupClasses(); - - SHFILEOPSTRUCT file_op = { - nullptr, - FO_DELETE, - wszTempDir, - L"", - FOF_NOERRORUI | FOF_SILENT | FOF_NOCONFIRMATION, - false, - nullptr, - L"" - }; - SHFileOperation(&file_op); - + DeleteDirectoryTreeW(wszTempDir); return 0; } -- cgit v1.2.3