Alexandre Julliard : user32: Fallback to English in MessageBoxIndirect if the specified language is not supported .
Module: wine Branch: master Commit: db1c43c399fe9559abe43a08064255c1e50acf6d URL: http://source.winehq.org/git/wine.git/?a=commit;h=db1c43c399fe9559abe43a0806... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Jun 21 11:50:44 2010 +0200 user32: Fallback to English in MessageBoxIndirect if the specified language is not supported. --- dlls/user32/msgbox.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/user32/msgbox.c b/dlls/user32/msgbox.c index 32b4252..effe09b 100644 --- a/dlls/user32/msgbox.c +++ b/dlls/user32/msgbox.c @@ -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;
participants (1)
-
Alexandre Julliard