From 7033649c4f4c148220c60999a15ee5aa1bf4ec7b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 18 May 2006 12:29:19 +0200 Subject: [PATCH] user: Get rid of the WINPROC_MapMsg32WTo32A function. --- dlls/user/winproc.c | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/dlls/user/winproc.c b/dlls/user/winproc.c index 6197f0f37ed..7c82591d4e3 100644 --- a/dlls/user/winproc.c +++ b/dlls/user/winproc.c @@ -982,26 +982,6 @@ LRESULT WINPROC_UnmapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa } -/********************************************************************** - * WINPROC_MapMsg32WTo32A - * - * Map a message from Unicode to Ansi. - * Return value is -1 on error, 0 if OK, 1 if an UnmapMsg call is needed. - */ -static INT WINPROC_MapMsg32WTo32A( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plparam ) -{ - switch(msg) - { - case WM_PAINTCLIPBOARD: - case WM_SIZECLIPBOARD: - FIXME_(msg)("message %s (%04x) needs translation, please report\n",SPY_GetMsgName(msg, hwnd),msg ); - return -1; - default: /* No translation needed */ - return 0; - } -} - - static UINT convert_handle_16_to_32(HANDLE16 src, unsigned int flags) { HANDLE dst; @@ -2756,7 +2736,6 @@ static LRESULT WINPROC_CallProc32WTo32A( WNDPROC func, HWND hwnd, UINT msg, WPAR LPARAM lParam, BOOL dialog ) { LRESULT ret = 0; - int unmap; TRACE_(msg)("func %p (hwnd=%p,msg=%s,wp=%08x,lp=%08lx)\n", func, hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam); @@ -3011,12 +2990,13 @@ static LRESULT WINPROC_CallProc32WTo32A( WNDPROC func, HWND hwnd, UINT msg, WPAR } break; + case WM_PAINTCLIPBOARD: + case WM_SIZECLIPBOARD: + FIXME_(msg)( "message %s (%04x) needs translation, please report\n", + SPY_GetMsgName(msg, hwnd), msg ); + break; + default: - if ((unmap = WINPROC_MapMsg32WTo32A( hwnd, msg, &wParam, &lParam )) == -1) { - ERR_(msg)("Message translation failed. (msg=%s,wp=%08x,lp=%08lx)\n", - SPY_GetMsgName(msg, hwnd), wParam, lParam ); - return 0; - } ret = WINPROC_CallWndProc( func, hwnd, msg, wParam, lParam ); break; }