Eric Pouech : Remove a couple of superfluous casts.
Alexandre Julliard
julliard at winehq.org
Sat Aug 29 11:36:42 CDT 2009
Module: wine
Branch: master
Commit: 35d6217def8c2bf0b65c2ef9fbdf71667f7f8187
URL: http://source.winehq.org/git/wine.git/?a=commit;h=35d6217def8c2bf0b65c2ef9fbdf71667f7f8187
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Sat Aug 29 14:23:42 2009 +0200
Remove a couple of superfluous casts.
---
dlls/ole32/storage32.c | 8 ++++----
dlls/shell32/brsfolder.c | 2 +-
dlls/shell32/shlmenu.c | 2 +-
dlls/shell32/shlview.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index ac53510..6e3e1e1 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -5918,7 +5918,7 @@ HRESULT WINAPI StgCreateDocfile(
*/
hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage,
- (REFIID)&IID_IStorage,
+ &IID_IStorage,
(void**)ppstgOpen);
end:
TRACE("<-- %p r = %08x\n", *ppstgOpen, hr);
@@ -6222,7 +6222,7 @@ HRESULT WINAPI StgOpenStorage(
*/
hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage,
- (REFIID)&IID_IStorage,
+ &IID_IStorage,
(void**)ppstgOpen);
end:
@@ -6276,7 +6276,7 @@ HRESULT WINAPI StgCreateDocfileOnILockBytes(
*/
hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage,
- (REFIID)&IID_IStorage,
+ &IID_IStorage,
(void**)ppstgOpen);
return hr;
@@ -6341,7 +6341,7 @@ HRESULT WINAPI StgOpenStorageOnILockBytes(
*/
hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage,
- (REFIID)&IID_IStorage,
+ &IID_IStorage,
(void**)ppstgOpen);
return hr;
diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index 925d439..44103ab 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -521,7 +521,7 @@ static LRESULT BrsFolder_Treeview_Expand( browse_info *info, NMTREEVIEWW *pnmtv
if (lptvid->lpi && lptvid->lpi->mkid.cb) {
r = IShellFolder_BindToObject( lptvid->lpsfParent, lptvid->lpi, 0,
- (REFIID)&IID_IShellFolder, (LPVOID *)&lpsf2 );
+ &IID_IShellFolder, (LPVOID *)&lpsf2 );
} else {
lpsf2 = lptvid->lpsfParent;
r = IShellFolder_AddRef(lpsf2);
diff --git a/dlls/shell32/shlmenu.c b/dlls/shell32/shlmenu.c
index da5e300..efdd6b5 100644
--- a/dlls/shell32/shlmenu.c
+++ b/dlls/shell32/shlmenu.c
@@ -172,7 +172,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPCITEMIDLIST pAlternatePidl)
if (SUCCEEDED (SHGetDesktopFolder(&lpsf)))
{
- if (SUCCEEDED(IShellFolder_BindToObject(lpsf, pidl,0,(REFIID)&IID_IShellFolder,(LPVOID *)&lpsf2)))
+ if (SUCCEEDED(IShellFolder_BindToObject(lpsf, pidl,0,&IID_IShellFolder,(LPVOID *)&lpsf2)))
{
IEnumIDList *lpe = NULL;
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index 318b15b..fc057ed 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -976,7 +976,7 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL
if( ShellView_GetSelections(This) )
{
IShellFolder_GetUIObjectOf( This->pSFParent, This->hWndParent, This->cidl, (LPCITEMIDLIST*)This->apidl,
- (REFIID)&IID_IContextMenu, NULL, (LPVOID *)&pContextMenu);
+ &IID_IContextMenu, NULL, (LPVOID *)&pContextMenu);
if(pContextMenu)
{
More information about the wine-cvs
mailing list