user32: Fallback to English in MessageBoxIndirect if the specified language is not supported.
This commit is contained in:
parent
fa2444caf1
commit
db1c43c399
|
@ -512,7 +512,11 @@ INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
|
|||
|
||||
if (!(hRes = FindResourceExW(user32_module, (LPWSTR)RT_DIALOG,
|
||||
msg_box_res_nameW, msgbox->dwLanguageId)))
|
||||
return 0;
|
||||
{
|
||||
if (!msgbox->dwLanguageId ||
|
||||
!(hRes = FindResourceExW(user32_module, (LPWSTR)RT_DIALOG, msg_box_res_nameW, LANG_NEUTRAL)))
|
||||
return 0;
|
||||
}
|
||||
if (!(tmplate = LoadResource(user32_module, hRes)))
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue