From bab5ae9fabfe7187b46dd56cf7b8fad018053b03 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 26 Sep 2022 22:05:57 +0400 Subject: [win32] fix RemoveDirectoryW --- source/kit/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/kit/file.c b/source/kit/file.c index 35d7034..bb32cdb 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -262,7 +262,7 @@ kit_status_t kit_file_remove(kit_str_t const path) { kit_status_t kit_file_remove_folder(kit_str_t const path) { PREPARE_PATH_BUF_; #if defined(_WIN32) && !defined(__CYGWIN__) - if (DeleteDirectoryW(buf)) + if (RemoveDirectoryW(buf)) return KIT_OK; #else if (rmdir(buf) == 0) -- cgit v1.2.3