From 402f2618ce910658dca9d1ff86edb52fc3762b06 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 23 Oct 2002 18:45:46 +0000 Subject: [PATCH] MessageBoxIndirectW: call FindResourceEx with arguments in the right order. --- windows/msgbox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/windows/msgbox.c b/windows/msgbox.c index 80b0dead0ba..21a0eb5339b 100644 --- a/windows/msgbox.c +++ b/windows/msgbox.c @@ -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;