Commit 3d92de45 authored by Alexandre Julliard's avatar Alexandre Julliard

user: Added fast A->W mapping for the remaining messages.

parent 0eec70f4
...@@ -770,10 +770,6 @@ static INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM ...@@ -770,10 +770,6 @@ static INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM
*plparam = (LPARAM)buf; *plparam = (LPARAM)buf;
return (*plparam ? 1 : -1); return (*plparam ? 1 : -1);
} }
case WM_PAINTCLIPBOARD:
case WM_SIZECLIPBOARD:
FIXME_(msg)("message %s (0x%x) needs translation, please report\n", SPY_GetMsgName(msg, hwnd), msg );
return -1;
default: /* No translation needed */ default: /* No translation needed */
return 0; return 0;
} }
...@@ -2497,7 +2493,6 @@ LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg, ...@@ -2497,7 +2493,6 @@ LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg,
LPARAM lParam, LRESULT *result, void *arg ) LPARAM lParam, LRESULT *result, void *arg )
{ {
LRESULT ret = 0; LRESULT ret = 0;
int unmap;
TRACE_(msg)("(hwnd=%p,msg=%s,wp=%08x,lp=%08lx)\n", TRACE_(msg)("(hwnd=%p,msg=%s,wp=%08x,lp=%08lx)\n",
hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam); hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam);
...@@ -2726,16 +2721,14 @@ LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg, ...@@ -2726,16 +2721,14 @@ LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg,
} }
break; break;
case WM_PAINTCLIPBOARD:
case WM_SIZECLIPBOARD:
FIXME_(msg)( "message %s (0x%x) needs translation, please report\n",
SPY_GetMsgName(msg, hwnd), msg );
break;
default: default:
if( (unmap = WINPROC_MapMsg32ATo32W( 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 = callback( hwnd, msg, wParam, lParam, result, arg ); ret = callback( hwnd, msg, wParam, lParam, result, arg );
if (!unmap) break;
*result = WINPROC_UnmapMsg32ATo32W( hwnd, msg, wParam, lParam, *result,
(callback == call_window_proc) ? arg : NULL /*FIXME: hack*/ );
break; break;
} }
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment