Commit 0b61b5b0 authored by anonymous's avatar anonymous
Browse files

win32: use CreateDirectoryW()

parent a9082605
......@@ -38,7 +38,10 @@ int win32_mkdir(const char *dir)
wchar_t wdir[MAX_PATH];
MultiByteToWideChar(CP_UTF8, 0, dir, -1, wdir, MAX_PATH);
return _wmkdir(wdir);
if (!CreateDirectoryW(wdir, NULL))
return -1;
return 0;
char *file_get_config_home(void)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment