summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/posix.h')
-rw-r--r--src/win32/posix.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index 14caae41..ddab88a3 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -21,13 +21,10 @@ GIT_INLINE(int) p_link(const char *old, const char *new)
GIT_INLINE(int) p_mkdir(const char *path, mode_t mode)
{
- wchar_t* buf = gitwin_to_utf16(path);
- int ret = _wmkdir(buf);
-
+ wchar_t buf[GIT_WIN_PATH];
GIT_UNUSED(mode);
-
- git__free(buf);
- return ret;
+ git__utf8_to_16(buf, path);
+ return _wmkdir(buf);
}
extern int p_unlink(const char *path);