From a4d7ca0f22e656c0ae30d658bbfac25209f85ae6 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Tue, 4 Jan 2000 00:29:44 +0000 Subject: [PATCH] Corrected parameter count for DialogBoxIndirectParamAorW. --- relay32/user32.spec | 2 +- windows/dialog.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/relay32/user32.spec b/relay32/user32.spec index 54a924982de..e840e6dff29 100644 --- a/relay32/user32.spec +++ b/relay32/user32.spec @@ -138,7 +138,7 @@ init MAIN_UserInit 134 stdcall DestroyMenu(long) DestroyMenu 135 stdcall DestroyWindow(long) DestroyWindow 136 stdcall DialogBoxIndirectParamA(long ptr long ptr long) DialogBoxIndirectParamA -137 stdcall DialogBoxIndirectParamAorW(long ptr long ptr long) DialogBoxIndirectParamA +137 stdcall DialogBoxIndirectParamAorW(long ptr long ptr long long) DialogBoxIndirectParamAorW 138 stdcall DialogBoxIndirectParamW(long ptr long ptr long) DialogBoxIndirectParamW 139 stdcall DialogBoxParamA(long str long ptr long) DialogBoxParamA 140 stdcall DialogBoxParamW(long wstr long ptr long) DialogBoxParamW diff --git a/windows/dialog.c b/windows/dialog.c index 97dc5329e26..3e1a02ef831 100644 --- a/windows/dialog.c +++ b/windows/dialog.c @@ -1065,6 +1065,21 @@ INT WINAPI DialogBoxIndirectParamW(HINSTANCE hInstance, LPCVOID template, return -1; } +/*********************************************************************** + * DialogBoxIndirectParamAorW (USER32.138) + */ +INT WINAPI DialogBoxIndirectParamAorW(HINSTANCE hInstance, LPCVOID template, + HWND owner, DLGPROC dlgProc, + LPARAM param, DWORD x ) +{ + HWND hwnd; + FIXME("0x%08x %p 0x%08x %p 0x%08lx 0x%08lx\n", + hInstance, template, owner, dlgProc, param, x); + hwnd = CreateDialogIndirectParamW( hInstance, template, + owner, dlgProc, param ); + if (hwnd) return DIALOG_DoDialogBox( hwnd, owner ); + return -1; +} /*********************************************************************** * EndDialog16 (USER.88)