Changeset 0ac31c77f2e46da5bc61cb3dcdc77651ecf43027

Show
Ignore:
Timestamp:
14/06/08 11:05:32 (4 months ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1213434332 +0200
git-parent:

[ed58d07d9bc6718a4856fa57caf7615ba5334623]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1213434332 +0200
Message:

Turn comment into error message.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/activex/vlccontrol.cpp

    ref7ff28 r0ac31c7  
    510510STDMETHODIMP VLCControl::setVariable(BSTR name, VARIANT value) 
    511511{ 
    512     /** setVariable() is an unsafe interface because of security 
    513       implications it has and is thus removed. */ 
    514     return E_INVALIDARG; 
     512    libvlc_instance_t* p_libvlc; 
     513    HRESULT result = _p_instance->getVLC(&p_libvlc); 
     514    if( SUCCEEDED(result) ) 
     515    { 
     516        _p_instance->setErrorInfo(IID_IVLCControl, 
     517            "setVariable() is an unsafe interface to use. " 
     518            "It has been removed because of security implications." ); 
     519    } 
     520    return E_FAIL; 
    515521}; 
    516522 
    517523STDMETHODIMP VLCControl::getVariable(BSTR name, VARIANT *value) 
    518524{ 
    519     /** getVariable() is an unsafe interface because of security 
    520       implications it has and is thus removed. */ 
    521     return E_INVALIDARG; 
     525    libvlc_instance_t* p_libvlc; 
     526    HRESULT result = _p_instance->getVLC(&p_libvlc); 
     527    if( SUCCEEDED(result) ) 
     528    { 
     529        _p_instance->setErrorInfo(IID_IVLCControl, 
     530            "getVariable() is an unsafe interface to use. " 
     531            "It has been removed because of security implications." ); 
     532    } 
     533    return E_FAIL; 
    522534}; 
    523535