[GME-commit] GMESRC/GME/Gme GMEBrowser.h,1.9,1.10
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu May 5 19:43:45 CDT 2005
Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv12071
Modified Files:
GMEBrowser.h
Log Message:
It crashed previously on IGMEOLEPanels::Interface call if called for the ActiveBrowser Panel like: gme.Panels[0].Interface.
Wrong com ptr handling of m_GMEActiveBrowser.GetControlUnknown() [refcount error maybe] corrected.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: GMEBrowser.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/GMEBrowser.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** GMEBrowser.h 12 Jan 2005 17:53:16 -0000 1.9
--- GMEBrowser.h 5 May 2005 18:43:42 -0000 1.10
***************
*** 31,39 ****
IDispatch * GetInterface()
{
! CComPtr<IUnknown> punk;
! punk.Attach(m_GMEActiveBrowser.GetControlUnknown());
! IDispatch* disp = NULL;
! punk.QueryInterface(&disp);
! return disp;
};
--- 31,40 ----
IDispatch * GetInterface()
{
! LPUNKNOWN pUnk = m_GMEActiveBrowser.GetControlUnknown();
!
! // From there get the IDispatch interface of control.
! LPDISPATCH pDisp = NULL;
! pUnk->QueryInterface(IID_IDispatch, (LPVOID*)&pDisp);
! return pDisp;
};
More information about the GME-commit
mailing list