Use wide char variable to remove directory.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Klaas Freitag 2013-01-09 15:02:07 +01:00 committed by Andreas Schneider
parent 7d0acf9ba3
commit f2b9bc6d0d

View file

@ -99,7 +99,7 @@ int c_rmdirs(const char *path) {
if ((d = _topendir(wpath)) != NULL) { if ((d = _topendir(wpath)) != NULL) {
while( _tstat(wpath, &sb) == 0) { while( _tstat(wpath, &sb) == 0) {
/* if we can remove the directory we're done */ /* if we can remove the directory we're done */
if (_trmdir(path) == 0) { if (_trmdir(wpath) == 0) {
break; break;
} }
switch (errno) { switch (errno) {