Michael Stefaniuc : shell32: Remove some superfluous LPARAM/WPARAM casts.

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


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Dec 27 23:53:28 2009 +0100

shell32: Remove some superfluous LPARAM/WPARAM casts.

---

 dlls/shell32/brsfolder.c    |    2 +-
 dlls/shell32/changenotify.c |    2 +-
 dlls/shell32/shell32_main.c |    2 +-
 dlls/shell32/shlview.c      |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index 44103ab..0bc5820 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -490,7 +490,7 @@ static void BrsFolder_CheckValidSelection( browse_info *info, LPTV_ITEMDATA lptv
             bEnabled = FALSE;
         }
     }
-    SendMessageW(info->hWnd, BFFM_ENABLEOK, 0, (LPARAM)bEnabled);
+    SendMessageW(info->hWnd, BFFM_ENABLEOK, 0, bEnabled);
 }
 
 static LRESULT BrsFolder_Treeview_Delete( browse_info *info, NMTREEVIEWW *pnmtv )
diff --git a/dlls/shell32/changenotify.c b/dlls/shell32/changenotify.c
index 96ffd99..13d70dc 100644
--- a/dlls/shell32/changenotify.c
+++ b/dlls/shell32/changenotify.c
@@ -387,7 +387,7 @@ void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID
         ptr->wSignalledEvent |= wEventId;
 
         if (ptr->dwFlags  & SHCNRF_NewDelivery)
-            SendMessageA(ptr->hwnd, ptr->uMsg, (WPARAM) ptr, (LPARAM) GetCurrentProcessId());
+            SendMessageA(ptr->hwnd, ptr->uMsg, (WPARAM) ptr, GetCurrentProcessId());
         else
             SendMessageA(ptr->hwnd, ptr->uMsg, (WPARAM)Pidls, wEventId);
 
diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 2d0f0b7..5f6a81d 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -956,7 +956,7 @@ static INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
                 {
                     /* authors list is in utf-8 format */
                     MultiByteToWideChar( CP_UTF8, 0, *pstr, -1, buffer, sizeof(buffer)/sizeof(WCHAR) );
-                    SendMessageW( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)buffer );
+                    SendMessageW( hWndCtl, LB_ADDSTRING, -1, (LPARAM)buffer );
                     pstr++;
                 }
                 SendMessageW( hWndCtl, WM_SETREDRAW, 1, 0 );
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index 6deed53..b14ba78 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -1262,7 +1262,7 @@ static LRESULT ShellView_OnCommand(IShellViewImpl * This,DWORD dwCmdID, DWORD dw
 	  case 0x31:
 	  case 0x32:
 	  case 0x33:
-	    This->ListViewSortInfo.nHeaderID = (LPARAM) (dwCmdID - 0x30);
+            This->ListViewSortInfo.nHeaderID = dwCmdID - 0x30;
 	    This->ListViewSortInfo.bIsAscending = TRUE;
 	    This->ListViewSortInfo.nLastHeaderID = This->ListViewSortInfo.nHeaderID;
 	    SendMessageA(This->hWndList, LVM_SORTITEMS, (WPARAM) &This->ListViewSortInfo, (LPARAM)ShellView_ListViewCompareItems);




More information about the wine-cvs mailing list