Changeset 311 for trunk/DirectShowSpy


Ignore:
Timestamp:
Aug 30, 2014, 1:04:01 AM (10 years ago)
Author:
roman
Message:

Fixed a bug with incorrect handling of external QI for IObjectWithSite (crashed Mozilla Firefox)

Location:
trunk/DirectShowSpy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/DirectShowSpy/FilterGraphSpy.h

    r310 r311  
    573573                if(m_pPrivateAmGraphBuilderCallback)
    574574                {
    575                         reinterpret_cast<CComPtr<IObjectWithSite>&>(*ppvObject) = static_cast<T*>(this);
     575                        *ppvObject = CComPtr<IObjectWithSite>(static_cast<T*>(this)).Detach();
    576576                        return S_OK;
    577577                }
Note: See TracChangeset for help on using the changeset viewer.