Commit 0925d6ec authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

When reading resources in NLS_LoadStringExW we should map

SUBLANG_NEUTRAL to SUBLANG_DEFAULT.
parent 738e2461
......@@ -418,6 +418,10 @@ static INT NLS_LoadStringExW(HMODULE hModule, LANGID lang_id, UINT res_id, LPWST
int string_num;
int i;
/* Replace SUBLANG_NEUTRAL by SUBLANG_DEFAULT */
if(SUBLANGID(lang_id) == SUBLANG_NEUTRAL)
lang_id = MAKELANGID(PRIMARYLANGID(lang_id), SUBLANG_DEFAULT);
hrsrc = FindResourceExW(hModule, RT_STRINGW, (LPCWSTR)((res_id >> 4) + 1), lang_id);
if(!hrsrc) return 0;
......
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