mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
correct _com_ptr usage
svn path=/trunk/; revision=19749
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user