summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2022-09-26 22:05:57 +0400
committerMitya Selivanov <automainint@guattari.tech>2022-09-26 22:05:57 +0400
commitbab5ae9fabfe7187b46dd56cf7b8fad018053b03 (patch)
treee266bdd6e04ba9e324f29ce71ba9795dfdc0a07a
parent0dfb6d27f1b45a767d011d18c2d75a93381be67d (diff)
downloadkit-bab5ae9fabfe7187b46dd56cf7b8fad018053b03.zip
[win32] fix RemoveDirectoryW
-rw-r--r--source/kit/file.c2
1 files changed, 1 insertions, 1 deletions
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)