From e879989e3a462eb0ca43037190b95bf65d6db0eb Mon Sep 17 00:00:00 2001 From: Damien Fouilleul Date: Thu, 6 Apr 2006 15:09:40 +0000 Subject: [PATCH] - fixed a few return codes from APIs --- activex/vlccontrol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activex/vlccontrol.cpp b/activex/vlccontrol.cpp index 2748457968..12da4eac3b 100644 --- a/activex/vlccontrol.cpp +++ b/activex/vlccontrol.cpp @@ -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);