From e54ab7a8b6edbffe5ef642f9258f84baafbe59fa Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Tue, 6 Dec 2011 13:12:57 +0100 Subject: [PATCH] user32: Add stub implementations of MessageBoxTimeoutA/W. --- dlls/user32/msgbox.c | 20 ++++++++++++++++++++ dlls/user32/user32.spec | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/dlls/user32/msgbox.c b/dlls/user32/msgbox.c index fe721664b72..91437bc9244 100644 --- a/dlls/user32/msgbox.c +++ b/dlls/user32/msgbox.c @@ -453,6 +453,26 @@ INT WINAPI MessageBoxExW( HWND hWnd, LPCWSTR text, LPCWSTR title, return MessageBoxIndirectW(&msgbox); } +/************************************************************************** + * MessageBoxTimeoutA (USER32.@) + */ +INT WINAPI MessageBoxTimeoutA( HWND hWnd, LPCSTR text, LPCSTR title, + UINT type, WORD langid, DWORD timeout ) +{ + FIXME("timeout not supported (%u)\n", timeout); + return MessageBoxExA( hWnd, text, title, type, langid ); +} + +/************************************************************************** + * MessageBoxTimeoutW (USER32.@) + */ +INT WINAPI MessageBoxTimeoutW( HWND hWnd, LPCWSTR text, LPCWSTR title, + UINT type, WORD langid, DWORD timeout ) +{ + FIXME("timeout not supported (%u)\n", timeout); + return MessageBoxExW( hWnd, text, title, type, langid ); +} + /************************************************************************** * MessageBoxIndirectA (USER32.@) */ diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index 104ca860c02..d5c123ca5fa 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -498,8 +498,8 @@ @ stdcall MessageBoxExW(long wstr wstr long long) @ stdcall MessageBoxIndirectA(ptr) @ stdcall MessageBoxIndirectW(ptr) -# @ stub MessageBoxTimeoutA -# @ stub MessageBoxTimeoutW +@ stdcall MessageBoxTimeoutA(long str str long long long) +@ stdcall MessageBoxTimeoutW(long wstr wstr long long long) @ stdcall MessageBoxW(long wstr wstr long) # @ stub ModifyAccess @ stdcall ModifyMenuA(long long long long ptr)