Remove a couple of superfluous casts.

This commit is contained in:
Eric Pouech 2009-08-29 14:23:42 +02:00 committed by Alexandre Julliard
parent 7cdf3389dd
commit 35d6217def
4 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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)
{