Michael Stefaniuc : winex11.drv: Remove some explicit LPARAM/WPARAM casts.

Alexandre Julliard julliard at winehq.org
Mon Dec 28 09:16:06 CST 2009


Module: wine
Branch: master
Commit: 425cc7e033a7e82c701441c1f43513c639c791d8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=425cc7e033a7e82c701441c1f43513c639c791d8

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Dec 27 14:40:57 2009 +0100

winex11.drv: Remove some explicit LPARAM/WPARAM casts.

---

 dlls/winex11.drv/clipboard.c |    2 +-
 dlls/winex11.drv/opengl.c    |    2 +-
 dlls/winex11.drv/systray.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index 7735b56..706d378 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -790,7 +790,7 @@ static BOOL X11DRV_CLIPBOARD_RenderFormat(Display *display, LPWINE_CLIPDATA lpDa
              * data requested into the clipboard.
              */
             TRACE("Sending WM_RENDERFORMAT message to hwnd(%p)\n", cbInfo.hWndOwner);
-            SendMessageW(cbInfo.hWndOwner, WM_RENDERFORMAT, (WPARAM)lpData->wFormatID, 0);
+            SendMessageW(cbInfo.hWndOwner, WM_RENDERFORMAT, lpData->wFormatID, 0);
 
             if (!lpData->hData) bret = FALSE;
         }
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 5bd0255..e784844 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1601,7 +1601,7 @@ static BOOL internal_SetPixelFormat(X11DRV_PDEVICE *physDev,
             return FALSE;
         }
 
-        if(!SendMessageW(hwnd, WM_X11DRV_SET_WIN_FORMAT, (WPARAM)fmt->fmt_id, 0)) {
+        if(!SendMessageW(hwnd, WM_X11DRV_SET_WIN_FORMAT, fmt->fmt_id, 0)) {
             ERR("Couldn't set format of the window, returning failure\n");
             return FALSE;
         }
diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c
index ddeb223..bbe6b67 100644
--- a/dlls/winex11.drv/systray.c
+++ b/dlls/winex11.drv/systray.c
@@ -185,7 +185,7 @@ static LRESULT WINAPI tray_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
     case WM_MBUTTONDBLCLK:
         /* notify the owner hwnd of the message */
         TRACE("relaying 0x%x\n", msg);
-        ret = PostMessageW(icon->owner, icon->callback_message, (WPARAM) icon->id, (LPARAM) msg);
+        ret = PostMessageW(icon->owner, icon->callback_message, icon->id, msg);
         if (!ret && (GetLastError() == ERROR_INVALID_WINDOW_HANDLE))
         {
             WARN( "application window was destroyed, removing icon %u\n", icon->id );




More information about the wine-cvs mailing list