mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +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();
|
update_shell_browser();
|
||||||
|
|
||||||
if (&*_shellBrowser)
|
if (_shellBrowser.get())
|
||||||
if (_left_hwnd)
|
if (_left_hwnd)
|
||||||
_shellBrowser->Init(_himlSmall);
|
_shellBrowser->Init(_himlSmall);
|
||||||
else
|
else
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue