diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-08-13 11:15:39 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-08-13 11:15:39 +0400 |
commit | abf3732728d0af42ed7217c7148509c8aa30a7e5 (patch) | |
tree | 068a4aedbc27989e78d6acf14fe638dfcb9bb1cd /src/path.c | |
parent | 0e26fca1daa11a3108960dee3cb555b4c482ad81 (diff) |
windows: Path conversion with better semantics
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index d0cecc070..cf9a3776a 100644 --- a/src/path.c +++ b/src/path.c @@ -486,14 +486,14 @@ bool git_path_is_empty_dir(const char *path) { git_buf pathbuf = GIT_BUF_INIT; HANDLE hFind = INVALID_HANDLE_VALUE; - git_win32_path_utf16 wbuf; + git_win32_path wbuf; WIN32_FIND_DATAW ffd; bool retval = true; if (!git_path_isdir(path)) return false; git_buf_printf(&pathbuf, "%s\\*", path); - git__win32_path_utf8_to_16(wbuf, git_buf_cstr(&pathbuf)); + git__win32_path_from_c(wbuf, git_buf_cstr(&pathbuf)); hFind = FindFirstFileW(wbuf, &ffd); if (INVALID_HANDLE_VALUE == hFind) { |