Commit 092e68b2 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Pass correct buffer to locale_to_sname helper in create_locinfo.

parent 93736efa
......@@ -1339,7 +1339,7 @@ static pthreadlocinfo create_locinfo(int category,
locale_len[i] = p-locale;
}
} else {
locale_found = locale_to_sname(buf, &cp[i], &sname_match, wbuf, LOCALE_NAME_MAX_LENGTH);
locale_found = locale_to_sname(locale, &cp[i], &sname_match, wbuf, LOCALE_NAME_MAX_LENGTH);
locale_sname[i] = wcsdup(wbuf);
if(sname_match) {
locale_name[i] = locale;
......
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