MessageBoxIndirectW: call FindResourceEx with arguments in the right
order.
This commit is contained in:
parent
ab974c310c
commit
402f2618ce
|
@ -436,8 +436,7 @@ INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
|
||||||
HRSRC hRes;
|
HRSRC hRes;
|
||||||
HMODULE hUser32 = GetModuleHandleA("user32.dll");
|
HMODULE hUser32 = GetModuleHandleA("user32.dll");
|
||||||
static const WCHAR msg_box_res_nameW[] = { 'M','S','G','B','O','X',0 };
|
static const WCHAR msg_box_res_nameW[] = { 'M','S','G','B','O','X',0 };
|
||||||
|
if (!(hRes = FindResourceExW(hUser32, RT_DIALOGW, msg_box_res_nameW, msgbox->dwLanguageId)))
|
||||||
if (!(hRes = FindResourceExW(hUser32, msg_box_res_nameW, RT_DIALOGW, msgbox->dwLanguageId)))
|
|
||||||
return 0;
|
return 0;
|
||||||
if (!(tmplate = (LPVOID)LoadResource(hUser32, hRes)))
|
if (!(tmplate = (LPVOID)LoadResource(hUser32, hRes)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue