mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 16:13:53 +03:00
Use wide char variable to remove directory.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
7d0acf9ba3
commit
f2b9bc6d0d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue