Commit 35d6217d authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Remove a couple of superfluous casts.

parent 7cdf3389
...@@ -5918,7 +5918,7 @@ HRESULT WINAPI StgCreateDocfile( ...@@ -5918,7 +5918,7 @@ HRESULT WINAPI StgCreateDocfile(
*/ */
hr = StorageBaseImpl_QueryInterface( hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage, (IStorage*)newStorage,
(REFIID)&IID_IStorage, &IID_IStorage,
(void**)ppstgOpen); (void**)ppstgOpen);
end: end:
TRACE("<-- %p r = %08x\n", *ppstgOpen, hr); TRACE("<-- %p r = %08x\n", *ppstgOpen, hr);
...@@ -6222,7 +6222,7 @@ HRESULT WINAPI StgOpenStorage( ...@@ -6222,7 +6222,7 @@ HRESULT WINAPI StgOpenStorage(
*/ */
hr = StorageBaseImpl_QueryInterface( hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage, (IStorage*)newStorage,
(REFIID)&IID_IStorage, &IID_IStorage,
(void**)ppstgOpen); (void**)ppstgOpen);
end: end:
...@@ -6276,7 +6276,7 @@ HRESULT WINAPI StgCreateDocfileOnILockBytes( ...@@ -6276,7 +6276,7 @@ HRESULT WINAPI StgCreateDocfileOnILockBytes(
*/ */
hr = StorageBaseImpl_QueryInterface( hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage, (IStorage*)newStorage,
(REFIID)&IID_IStorage, &IID_IStorage,
(void**)ppstgOpen); (void**)ppstgOpen);
return hr; return hr;
...@@ -6341,7 +6341,7 @@ HRESULT WINAPI StgOpenStorageOnILockBytes( ...@@ -6341,7 +6341,7 @@ HRESULT WINAPI StgOpenStorageOnILockBytes(
*/ */
hr = StorageBaseImpl_QueryInterface( hr = StorageBaseImpl_QueryInterface(
(IStorage*)newStorage, (IStorage*)newStorage,
(REFIID)&IID_IStorage, &IID_IStorage,
(void**)ppstgOpen); (void**)ppstgOpen);
return hr; return hr;
......
...@@ -521,7 +521,7 @@ static LRESULT BrsFolder_Treeview_Expand( browse_info *info, NMTREEVIEWW *pnmtv ...@@ -521,7 +521,7 @@ static LRESULT BrsFolder_Treeview_Expand( browse_info *info, NMTREEVIEWW *pnmtv
if (lptvid->lpi && lptvid->lpi->mkid.cb) { if (lptvid->lpi && lptvid->lpi->mkid.cb) {
r = IShellFolder_BindToObject( lptvid->lpsfParent, lptvid->lpi, 0, r = IShellFolder_BindToObject( lptvid->lpsfParent, lptvid->lpi, 0,
(REFIID)&IID_IShellFolder, (LPVOID *)&lpsf2 ); &IID_IShellFolder, (LPVOID *)&lpsf2 );
} else { } else {
lpsf2 = lptvid->lpsfParent; lpsf2 = lptvid->lpsfParent;
r = IShellFolder_AddRef(lpsf2); r = IShellFolder_AddRef(lpsf2);
......
...@@ -172,7 +172,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPCITEMIDLIST pAlternatePidl) ...@@ -172,7 +172,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPCITEMIDLIST pAlternatePidl)
if (SUCCEEDED (SHGetDesktopFolder(&lpsf))) 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; IEnumIDList *lpe = NULL;
......
...@@ -976,7 +976,7 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL ...@@ -976,7 +976,7 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL
if( ShellView_GetSelections(This) ) if( ShellView_GetSelections(This) )
{ {
IShellFolder_GetUIObjectOf( This->pSFParent, This->hWndParent, This->cidl, (LPCITEMIDLIST*)This->apidl, IShellFolder_GetUIObjectOf( This->pSFParent, This->hWndParent, This->cidl, (LPCITEMIDLIST*)This->apidl,
(REFIID)&IID_IContextMenu, NULL, (LPVOID *)&pContextMenu); &IID_IContextMenu, NULL, (LPVOID *)&pContextMenu);
if(pContextMenu) if(pContextMenu)
{ {
......
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