Commit e879989e authored by Damien Fouilleul's avatar Damien Fouilleul

- fixed a few return codes from APIs

parent 63851f21
......@@ -40,7 +40,7 @@ HRESULT VLCControl::getTypeInfo(void)
{
ITypeLib *p_typelib;
HRESULT hr = _p_instance->getTypeLib(LOCALE_USER_DEFAULT, &p_typelib);
hr = _p_instance->getTypeLib(LOCALE_USER_DEFAULT, &p_typelib);
if( SUCCEEDED(hr) )
{
hr = p_typelib->GetTypeInfoOfGuid(IID_IVLCControl, &_p_typeinfo);
......@@ -186,7 +186,7 @@ STDMETHODIMP VLCControl::get_Position(float *position)
if( _p_instance->isRunning() )
{
int i_vlc;
HRESULT result = _p_instance->getVLCObject(&i_vlc);
result = _p_instance->getVLCObject(&i_vlc);
if( SUCCEEDED(result) )
{
*position = VLC_PositionGet(i_vlc);
......@@ -203,7 +203,7 @@ STDMETHODIMP VLCControl::put_Position(float position)
if( _p_instance->isRunning() )
{
int i_vlc;
HRESULT result = _p_instance->getVLCObject(&i_vlc);
result = _p_instance->getVLCObject(&i_vlc);
if( SUCCEEDED(result) )
{
VLC_PositionSet(i_vlc, position);
......@@ -221,7 +221,7 @@ STDMETHODIMP VLCControl::get_Time(int *seconds)
if( _p_instance->isRunning() )
{
int i_vlc;
HRESULT result = _p_instance->getVLCObject(&i_vlc);
result = _p_instance->getVLCObject(&i_vlc);
if( SUCCEEDED(result) )
{
*seconds = VLC_TimeGet(i_vlc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment