X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=activex%2Folecontrol.cpp;h=32e2f1c82ff3f74b8a81e5128631617d3bd68aa6;hb=757fcfc93b469319a520b69c47458ef283c8df1f;hp=0cdf70a488b80cdb732ec4e2f0120bc0f2dbd396;hpb=d2310f2a226acf7061a812193c8cd8aa15eff46b;p=vlc diff --git a/activex/olecontrol.cpp b/activex/olecontrol.cpp index 0cdf70a488..32e2f1c82f 100644 --- a/activex/olecontrol.cpp +++ b/activex/olecontrol.cpp @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ #include "plugin.h" @@ -40,18 +40,18 @@ STDMETHODIMP VLCOleControl::GetControlInfo(CONTROLINFO *pCI) STDMETHODIMP VLCOleControl::OnMnemonic(LPMSG pMsg) { - return E_NOTIMPL; + return S_OK; }; STDMETHODIMP VLCOleControl::OnAmbientPropertyChange(DISPID dispID) { HRESULT hr; - IOleObject *oleObj; + LPOLEOBJECT oleObj; hr = QueryInterface(IID_IOleObject, (LPVOID *)&oleObj); if( SUCCEEDED(hr) ) { - IOleClientSite *clientSite; + LPOLECLIENTSITE clientSite; hr = oleObj->GetClientSite(&clientSite); if( SUCCEEDED(hr) && (NULL != clientSite) )