small path_xx windows adjustemnts
This commit is contained in:
parent
19eac2d7dc
commit
013642b994
@ -1299,7 +1299,8 @@ bool PathDirContents::opendir()
|
|||||||
CLOSEDIR(m->dirhdl);
|
CLOSEDIR(m->dirhdl);
|
||||||
m->dirhdl = nullptr;
|
m->dirhdl = nullptr;
|
||||||
}
|
}
|
||||||
SYSPATH(m->dirpath, sysdir);
|
const std::string& dp{m->dirpath};
|
||||||
|
SYSPATH(dp, sysdir);
|
||||||
m->dirhdl = OPENDIR(sysdir);
|
m->dirhdl = OPENDIR(sysdir);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int rc = GetLastError();
|
int rc = GetLastError();
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
#include "cstr.h"
|
#include "cstr.h"
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "safewindows.h"
|
#include "safewindows.h"
|
||||||
|
#include <Shlobj.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user