diff options
author | Ben Straub <bs@github.com> | 2013-08-08 00:22:41 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-08-08 00:22:41 +0400 |
commit | 9c38f7a6523cdc87a897eccb6d83439987f99a4e (patch) | |
tree | 50f451bef9e3c3a869e2f321d585ca929a6a13f6 /src/path.c | |
parent | 75f98a95eee8a0efe8f9649ddc8a81c64d863ced (diff) |
Add typedefs for win32 utf-8 and utf-16 buffers
...and normalize the signatures of the two conversion functions.
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 ca0cc8c7c..da7bd90a0 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; - wchar_t wbuf[GIT_WIN_PATH_UTF16]; + git_win_str_utf16 wbuf; WIN32_FIND_DATAW ffd; bool retval = true; if (!git_path_isdir(path)) return false; git_buf_printf(&pathbuf, "%s\\*", path); - git__utf8_to_16(wbuf, GIT_WIN_PATH_UTF16, git_buf_cstr(&pathbuf)); + git__utf8_to_16(wbuf, git_buf_cstr(&pathbuf)); hFind = FindFirstFileW(wbuf, &ffd); if (INVALID_HANDLE_VALUE == hFind) { |