summaryrefslogtreecommitdiff
path: root/source/kit/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit/file.c')
-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)