[ros-diffs] [mf] 19749: correct _com_ptr usage
mf at svn.reactos.com
mf at svn.reactos.com
Tue Nov 29 13:54:58 CET 2005
correct _com_ptr usage
Modified: trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
Modified: trunk/reactos/subsys/system/explorer/shell/shellbrowser.h
_____
Modified: trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
--- trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
2005-11-29 11:44:04 UTC (rev 19748)
+++ trunk/reactos/subsys/system/explorer/shell/shellbrowser.cpp
2005-11-29 12:54:54 UTC (rev 19749)
@@ -558,7 +558,7 @@
update_shell_browser();
- if (&*_shellBrowser)
+ if (_shellBrowser.get())
if (_left_hwnd)
_shellBrowser->Init(_himlSmall);
else
_____
Modified: trunk/reactos/subsys/system/explorer/shell/shellbrowser.h
--- trunk/reactos/subsys/system/explorer/shell/shellbrowser.h
2005-11-29 11:44:04 UTC (rev 19748)
+++ trunk/reactos/subsys/system/explorer/shell/shellbrowser.h
2005-11-29 12:54:54 UTC (rev 19749)
@@ -237,7 +237,7 @@
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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051129/2b0359e9/attachment.html
More information about the Ros-diffs
mailing list