Skip to content

Commit 145027b

Browse files
committed
windows_wide_config: Fix wbuffer to be of the wchar_t type
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 505857c commit 145027b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2384,7 +2384,7 @@ const char *windows_wide_config(void)
23842384
{
23852385
static struct strbuf windows_wide = STRBUF_INIT;
23862386
if (!windows_wide.len) {
2387-
char wbuffer[MAX_PATH];
2387+
wchar_t wbuffer[MAX_PATH];
23882388
if (SHGetFolderPathW(NULL, CSIDL_COMMON_APPDATA, NULL,
23892389
SHGFP_TYPE_CURRENT, wbuffer) != S_OK)
23902390
strbuf_addch(&windows_wide, '\0');

0 commit comments

Comments
 (0)