correct _com_ptr usage

svn path=/trunk/; revision=19749
This commit is contained in:
Martin Fuchs 2005-11-29 12:54:54 +00:00
parent fb9cd9cd0c
commit 2b3e3984b1
2 changed files with 2 additions and 2 deletions

View file

@ -558,7 +558,7 @@ LRESULT MDIShellBrowserChild::Init(LPCREATESTRUCT pcs)
update_shell_browser(); update_shell_browser();
if (&*_shellBrowser) if (_shellBrowser.get())
if (_left_hwnd) if (_left_hwnd)
_shellBrowser->Init(_himlSmall); _shellBrowser->Init(_himlSmall);
else else

View file

@ -237,7 +237,7 @@ protected:
int Notify(int id, NMHDR* pnmh) int Notify(int id, NMHDR* pnmh)
{ {
if (&*_shellBrowser) if (_shellBrowser.get())
switch(pnmh->code) { switch(pnmh->code) {
case TVN_GETDISPINFO: _shellBrowser->OnTreeGetDispInfo(id, pnmh); break; case TVN_GETDISPINFO: _shellBrowser->OnTreeGetDispInfo(id, pnmh); break;
case TVN_SELCHANGED: _shellBrowser->OnTreeItemSelected(id, (LPNMTREEVIEW)pnmh); break; case TVN_SELCHANGED: _shellBrowser->OnTreeItemSelected(id, (LPNMTREEVIEW)pnmh); break;