small path_xx windows adjustemnts

This commit is contained in:
Jean-Francois Dockes 2020-09-29 13:43:26 +02:00
parent 19eac2d7dc
commit 013642b994
2 changed files with 3 additions and 1 deletions

View File

@ -1299,7 +1299,8 @@ bool PathDirContents::opendir()
CLOSEDIR(m->dirhdl);
m->dirhdl = nullptr;
}
SYSPATH(m->dirpath, sysdir);
const std::string& dp{m->dirpath};
SYSPATH(dp, sysdir);
m->dirhdl = OPENDIR(sysdir);
#ifdef _WIN32
int rc = GetLastError();

View File

@ -25,6 +25,7 @@
#include "cstr.h"
#ifdef _WIN32
#include "safewindows.h"
#include <Shlobj.h>
#else
#include <sys/param.h>
#include <pwd.h>