wstr
WideCharToMultiByte(CP_UTF8, 0, wstr, slash,
static int process_glob(WCHAR *wstr, int wlen)
if (wstr[i] == L'/' || wstr[i] == L'\\')
if (wstr[i] == L'*' || wstr[i] == L'?')
saved_char = wstr[wlen];
wstr[wlen] = L'\0';
h = FindFirstFileW(wstr, &data);
wstr[wlen] = saved_char;
udlen = WideCharToMultiByte(CP_UTF8, 0, wstr, slash,
static char *wide_to_asc(LPCWSTR wstr)
if (!wstr)
len_1 = wcslen(wstr) + 1;
sz = WideCharToMultiByte(CP_ACP, 0, wstr, len_0, NULL, 0, NULL, NULL);
if (!WideCharToMultiByte(CP_ACP, 0, wstr, len_0, str, sz, NULL, NULL)) {
struct wstr wdata;