mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
MessageBoxIndirectW: call FindResourceEx with arguments in the right
order.
This commit is contained in:
parent
ab974c310c
commit
402f2618ce
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue