MessageBoxIndirectW: call FindResourceEx with arguments in the right

order.
This commit is contained in:
Rein Klazes 2002-10-23 18:45:46 +00:00 committed by Alexandre Julliard
parent ab974c310c
commit 402f2618ce

View file

@ -436,8 +436,7 @@ INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
HRSRC hRes;
HMODULE hUser32 = GetModuleHandleA("user32.dll");
static const WCHAR msg_box_res_nameW[] = { 'M','S','G','B','O','X',0 };
if (!(hRes = FindResourceExW(hUser32, msg_box_res_nameW, RT_DIALOGW, msgbox->dwLanguageId)))
if (!(hRes = FindResourceExW(hUser32, RT_DIALOGW, msg_box_res_nameW, msgbox->dwLanguageId)))
return 0;
if (!(tmplate = (LPVOID)LoadResource(hUser32, hRes)))
return 0;