Nikolay Sivov : shell32: Remove a couple more casts of object pointers.

Alexandre Julliard julliard at winehq.org
Mon Nov 28 15:52:47 CST 2016


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Nov 27 17:01:47 2016 +0300

shell32: Remove a couple more casts of object pointers.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/shlview.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index 3bdd205..4560162 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -1218,7 +1218,7 @@ static LRESULT ShellView_OnSetFocus(IShellViewImpl * This)
 	should always be done before merging menus (OnActivate merges the
 	menus) if one of our windows has the focus.*/
 
-	IShellBrowser_OnViewWindowActive(This->pShellBrowser,(IShellView*) This);
+	IShellBrowser_OnViewWindowActive(This->pShellBrowser, (IShellView *)&This->IShellView3_iface);
 	ShellView_OnActivate(This, SVUIA_ACTIVATE_FOCUS);
 
 	/* Set the focus to the listview */
@@ -1594,7 +1594,7 @@ static LRESULT ShellView_OnNotify(IShellViewImpl * This, UINT CtlID, LPNMHDR lpn
 
 	      case VK_F5:
                 /* Initiate a refresh */
-		IShellView_Refresh((IShellView*)This);
+		IShellView3_Refresh(&This->IShellView3_iface);
 		break;
 
 	      case VK_BACK:




More information about the wine-cvs mailing list