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

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 22 05:19:08 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 3d92de45c4856d24f0d87efc2d5e5035eedf6e4d
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=3d92de45c4856d24f0d87efc2d5e5035eedf6e4d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sat May 20 19:59:19 2006 +0200

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

---

 dlls/user/winproc.c |   19 ++++++-------------
 1 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/dlls/user/winproc.c b/dlls/user/winproc.c
index 3dca3e9..09cf599 100644
--- a/dlls/user/winproc.c
+++ b/dlls/user/winproc.c
@@ -770,10 +770,6 @@ static INT WINPROC_MapMsg32ATo32W( HWND 
             *plparam = (LPARAM)buf;
             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 */
         return 0;
     }
@@ -2497,7 +2493,6 @@ LRESULT WINPROC_CallProcAtoW( winproc_ca
                               LPARAM lParam, LRESULT *result, void *arg )
 {
     LRESULT ret = 0;
-    int unmap;
 
     TRACE_(msg)("(hwnd=%p,msg=%s,wp=%08x,lp=%08lx)\n",
                 hwnd, SPY_GetMsgName(msg, hwnd), wParam, lParam);
@@ -2726,16 +2721,14 @@ LRESULT WINPROC_CallProcAtoW( winproc_ca
         }
         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:
-        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 );
-        if (!unmap) break;
-        *result = WINPROC_UnmapMsg32ATo32W( hwnd, msg, wParam, lParam, *result,
-                                            (callback == call_window_proc) ? arg : NULL  /*FIXME: hack*/ );
         break;
     }
     return ret;




More information about the wine-cvs mailing list