mirror of
https://github.com/git/git.git
synced 2026-02-11 10:18:04 +00:00
Merge pull request #118 from git-for-windows/fix-windows_wide_config
windows_wide_config: Fix wbuffer to be of the wchar_t type
This commit is contained in:
@@ -2384,7 +2384,7 @@ const char *windows_wide_config(void)
|
||||
{
|
||||
static struct strbuf windows_wide = STRBUF_INIT;
|
||||
if (!windows_wide.len) {
|
||||
char wbuffer[MAX_PATH];
|
||||
wchar_t wbuffer[MAX_PATH];
|
||||
if (SHGetFolderPathW(NULL, CSIDL_COMMON_APPDATA, NULL,
|
||||
SHGFP_TYPE_CURRENT, wbuffer) != S_OK)
|
||||
strbuf_addch(&windows_wide, '\0');
|
||||
|
||||
Reference in New Issue
Block a user