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;