Commit 4a4f138f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Set sname_match in locale_to_sname when returning cached result.

parent f93f31de
......@@ -341,7 +341,8 @@ BOOL locale_to_sname(const char *locale, unsigned short *codepage, BOOL *sname_m
if (!strcmp(locale, data->cached_locale)) {
if (codepage)
*codepage = data->cached_cp;
if (sname)
if (sname_match)
*sname_match = data->cached_sname_match;
wcsncpy(sname, data->cached_sname, sname_size);
return TRUE;
}
......@@ -441,6 +442,7 @@ BOOL locale_to_sname(const char *locale, unsigned short *codepage, BOOL *sname_m
if (strlen(locale) < sizeof(data->cached_locale)) {
strcpy(data->cached_locale, locale);
data->cached_cp = locale_cp;
data->cached_sname_match = is_sname;
wcscpy(data->cached_sname, sname);
}
......
......@@ -170,6 +170,7 @@ struct __thread_data {
int processing_throw;
frame_info *frame_info_head;
void *unk8[6];
BOOL cached_sname_match;
WCHAR cached_sname[LOCALE_NAME_MAX_LENGTH];
int unk9[2];
DWORD cached_cp;
......
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