user32: Fallback to English in MessageBoxIndirect if the specified language is not supported.

This commit is contained in:
Alexandre Julliard 2010-06-21 11:50:44 +02:00
parent fa2444caf1
commit db1c43c399
1 changed files with 5 additions and 1 deletions

View File

@ -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;