summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-08-13 09:38:37 +0200
committerVicent Marti <tanoku@gmail.com>2013-08-13 09:38:37 +0200
commit3948e86240e401adebe0d683709ddc32ecaf7f96 (patch)
tree44d691a386d9bad3471507ab6b7ae612fe3f67da
parent345b6307be76e6f48e255f698d057c7ac5f9679d (diff)
downloadlibgit2-3948e86240e401adebe0d683709ddc32ecaf7f96.tar.gz
windows: Fuck me
-rw-r--r--src/win32/dir.c2
-rw-r--r--src/win32/posix.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/win32/dir.c b/src/win32/dir.c
index cd3c7de51..65472dc80 100644
--- a/src/win32/dir.c
+++ b/src/win32/dir.c
@@ -79,7 +79,7 @@ int git__readdir_ext(
if (wcslen(d->f.cFileName) >= sizeof(entry->d_name))
return -1;
- git__win32_path_from_c(entry->d_name, d->f.cFileName);
+ git__win32_path_to_c(entry->d_name, d->f.cFileName);
entry->d_ino = 0;
*result = entry;
diff --git a/src/win32/posix.h b/src/win32/posix.h
index b573f49af..962877166 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -8,6 +8,7 @@
#define INCLUDE_posix__w32_h__
#include "common.h"
+#include "../posix.h"
#include "utf-conv.h"
#include "dir.h"