From f2b9bc6d0dfca44fb7f10ece6bfab42e5fdedfa8 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 9 Jan 2013 15:02:07 +0100 Subject: [PATCH] Use wide char variable to remove directory. Reviewed-by: Andreas Schneider --- src/std/c_dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/c_dir.c b/src/std/c_dir.c index 62a639621..4c5bd3a12 100644 --- a/src/std/c_dir.c +++ b/src/std/c_dir.c @@ -99,7 +99,7 @@ int c_rmdirs(const char *path) { if ((d = _topendir(wpath)) != NULL) { while( _tstat(wpath, &sb) == 0) { /* if we can remove the directory we're done */ - if (_trmdir(path) == 0) { + if (_trmdir(wpath) == 0) { break; } switch (errno) {