oledb32: Handle CLSIDFromProgID() failure (Coverity).

This commit is contained in:
Nikolay Sivov 2015-06-03 18:32:12 +03:00 committed by Alexandre Julliard
parent 8d4f568107
commit 1d08eb284a
1 changed files with 2 additions and 2 deletions

View File

@ -498,10 +498,10 @@ static HRESULT WINAPI datainit_GetDataSource(IDataInitialize *iface, IUnknown *o
TRACE("initial data source provider %s\n", debugstr_w(V_BSTR(&propset->rgProperties[0].vValue))); TRACE("initial data source provider %s\n", debugstr_w(V_BSTR(&propset->rgProperties[0].vValue)));
initprov = IID_NULL; initprov = IID_NULL;
CLSIDFromProgID(V_BSTR(&propset->rgProperties[0].vValue), &initprov); hr = CLSIDFromProgID(V_BSTR(&propset->rgProperties[0].vValue), &initprov);
free_dbpropset(count, propset); free_dbpropset(count, propset);
if (!IsEqualIID(&provclsid, &initprov)) return DB_E_MISMATCHEDPROVIDER; if (FAILED(hr) || !IsEqualIID(&provclsid, &initprov)) return DB_E_MISMATCHEDPROVIDER;
} }
if (!*datasource) if (!*datasource)