Use wide char variable to remove directory.

This commit is contained in:
Klaas Freitag 2013-01-09 15:02:07 +01:00
parent c2844b0545
commit 5e4c0acc6b

View file

@ -78,7 +78,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) {