When reading resources in NLS_LoadStringExW we should map SUBLANG_NEUTRAL to SUBLANG_DEFAULT.
diff --git a/ole/ole2nls.c b/ole/ole2nls.c index e410f73..67fa333 100644 --- a/ole/ole2nls.c +++ b/ole/ole2nls.c
@@ -418,6 +418,10 @@ 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;