mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
correct _com_ptr usage
svn path=/trunk/; revision=19749
This commit is contained in:
parent
fb9cd9cd0c
commit
2b3e3984b1
2 changed files with 2 additions and 2 deletions
|
@ -558,7 +558,7 @@ LRESULT MDIShellBrowserChild::Init(LPCREATESTRUCT pcs)
|
|||
|
||||
update_shell_browser();
|
||||
|
||||
if (&*_shellBrowser)
|
||||
if (_shellBrowser.get())
|
||||
if (_left_hwnd)
|
||||
_shellBrowser->Init(_himlSmall);
|
||||
else
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue