Use wide char variable to remove directory.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Esse commit está contido em:
Klaas Freitag
2013-01-09 15:02:07 +01:00
commit de Andreas Schneider
commit f2b9bc6d0d
+1 -1
Ver Arquivo
@@ -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) {