return E_NOTIMPL;
};
-STDMETHODIMP VLCControl::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames,
+STDMETHODIMP VLCControl::GetIDsOfNames(REFIID riid, LPOLESTR* rgszNames,
UINT cNames, LCID lcid, DISPID* rgDispID)
{
if( SUCCEEDED(getTypeInfo()) )
void VLCControl::FreeTargetOptions(char **cOptions, int cOptionCount)
{
- // clean up
+ // clean up
if( NULL != cOptions )
{
for( int pos=0; pos<cOptionCount; ++pos )
if( nOptions == capacity )
{
capacity += 16;
- char **moreOptions = (char **)CoTaskMemRealloc(options, capacity*sizeof(char*));
+ char **moreOptions = (char **)CoTaskMemRealloc(options, capacity*sizeof(char*));
if( ! moreOptions )
{
/* failed to allocate more memory */
hr = SafeArrayGetElement(array, &pos, &option);
if( SUCCEEDED(hr) )
{
- if( VT_BSTR == V_VT(&option) )
+ if( VT_BSTR == V_VT(&option) )
{
char *cOption = CStrFromBSTR(codePage, V_BSTR(&option));
(*cOptions)[pos-lBound] = cOption;
}
}
}
- else
+ else
{
// unsupported type
return E_INVALIDARG;
if( NULL != versionStr )
{
*version = BSTRFromCStr(CP_UTF8, versionStr);
-
+
return NULL == *version ? E_OUTOFMEMORY : NOERROR;
}
*version = NULL;