Menu

#187 CExplorerBHO::OnNavigateComplete() - Missing NULL checks

closed
nobody
None
5
2012-10-29
2012-09-20
Matt Bush
No

Classic shell will crash if...

"classic shell explorer settings" -> "all settings" -> "file pane" -> "show sort headers in all views"

is enabled when navigating to a shell extension that doesn't implement IFolderView2

STDMETHODIMP CExplorerBHO::OnNavigateComplete( IDispatch pDisp, VARIANT URL )
...
CComQIPtr<ifolderview> pFolderView=pView;
if (pFolderView)
{
if (GetSettingBool(L"ShowHeaders"))
{
...
CComQIPtr<ifolderview2> pView2=pFolderView;
// Turn on the sort header!
pView2->SetCurrentFolderFlags(FWF_NOHEADERINALLVIEWS,0);</ifolderview2></ifolderview>

pView2 is not checked for NULL before use.

Discussion

  • Ivo Beltchev

    Ivo Beltchev - 2012-09-20

    Thanks for reporting this. Where did you find a shell extension that doesn't support IFolderView2?

     
  • Ivo Beltchev

    Ivo Beltchev - 2012-10-28

    This is fixed in version 3.6.2

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.