From 2b3e3984b1823a08cc3e48763df1656d1d03dedb Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 29 Nov 2005 12:54:54 +0000 Subject: [PATCH] correct _com_ptr usage svn path=/trunk/; revision=19749 --- reactos/subsys/system/explorer/shell/shellbrowser.cpp | 2 +- reactos/subsys/system/explorer/shell/shellbrowser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/explorer/shell/shellbrowser.cpp b/reactos/subsys/system/explorer/shell/shellbrowser.cpp index 3da4962e0b4..33d38663116 100644 --- a/reactos/subsys/system/explorer/shell/shellbrowser.cpp +++ b/reactos/subsys/system/explorer/shell/shellbrowser.cpp @@ -558,7 +558,7 @@ LRESULT MDIShellBrowserChild::Init(LPCREATESTRUCT pcs) update_shell_browser(); - if (&*_shellBrowser) + if (_shellBrowser.get()) if (_left_hwnd) _shellBrowser->Init(_himlSmall); else diff --git a/reactos/subsys/system/explorer/shell/shellbrowser.h b/reactos/subsys/system/explorer/shell/shellbrowser.h index c0b7d9dd2c3..1a583b4636b 100644 --- a/reactos/subsys/system/explorer/shell/shellbrowser.h +++ b/reactos/subsys/system/explorer/shell/shellbrowser.h @@ -237,7 +237,7 @@ protected: int Notify(int id, NMHDR* pnmh) { - if (&*_shellBrowser) + if (_shellBrowser.get()) switch(pnmh->code) { case TVN_GETDISPINFO: _shellBrowser->OnTreeGetDispInfo(id, pnmh); break; case TVN_SELCHANGED: _shellBrowser->OnTreeItemSelected(id, (LPNMTREEVIEW)pnmh); break; -- 2.17.1