Windows: replace unlink() with unicode-capable path_unlink()

This commit is contained in:
Jean-Francois Dockes
2020-06-02 10:56:55 +01:00
parent cb3a59f88f
commit f15e3f21fa
7 changed files with 19 additions and 11 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ void Db::Native::openWrite(const string& dir, Db::OpenMode mode)
if (mode == DbTrunc) {
if (path_exists(path_cat(dir, "iamchert"))) {
wipedir(dir);
unlink(dir.c_str());
path_unlink(dir);
}
}
#endif