summaryrefslogtreecommitdiff
path: root/node/Utils.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-14 11:19:21 -0400
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2013-08-14 11:19:21 -0400
commit150a53eb17b18e0a20d85d56437a94aaf745ce2b (patch)
tree90e22d2698f5c5aa2bbb17e5f810f499e355f6e9 /node/Utils.cpp
parent1f9a7e26baceb5916e8d612f27aaed1073bbdb87 (diff)
downloadinfinitytier-150a53eb17b18e0a20d85d56437a94aaf745ce2b.tar.gz
infinitytier-150a53eb17b18e0a20d85d56437a94aaf745ce2b.zip
Self test almost builds, now need skeleton EthernetTap implementation for Windows.
Diffstat (limited to 'node/Utils.cpp')
-rw-r--r--node/Utils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp
index 4f04fb0c..32cfe2d1 100644
--- a/node/Utils.cpp
+++ b/node/Utils.cpp
@@ -220,11 +220,11 @@ std::map<std::string,bool> Utils::listDirectory(const char *path)
#ifdef __WINDOWS__
HANDLE hFind;
- WIN32_FIND_DATA ffd;
- if ((hFind = FindFirstFile((std::string(path) + "\\*").c_str(),&ffd)) != INVALID_HANDLE_VALUE) {
+ WIN32_FIND_DATAA ffd;
+ if ((hFind = FindFirstFileA((std::string(path) + "\\*").c_str(),&ffd)) != INVALID_HANDLE_VALUE) {
do {
r[std::string(ffd.cFileName)] = ((ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0);
- } while (FindNextFile(hFind,&ffd));
+ } while (FindNextFileA(hFind,&ffd));
FindClose(hFind);
}
#else