Commit ccad9657 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

quartz: Added some error checking on failure to CreateClassEnumerator.

parent 2e5a48be
......@@ -962,9 +962,14 @@ static HRESULT WINAPI FilterMapper2_EnumMatchingFilters(
*ppEnum = NULL;
hr = CoCreateInstance(&CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC, &IID_ICreateDevEnum, (LPVOID*)&pCreateDevEnum);
if (FAILED(hr))
return hr;
if (SUCCEEDED(hr))
hr = ICreateDevEnum_CreateClassEnumerator(pCreateDevEnum, &CLSID_ActiveMovieCategories, &pEnumCat, 0);
hr = ICreateDevEnum_CreateClassEnumerator(pCreateDevEnum, &CLSID_ActiveMovieCategories, &pEnumCat, 0);
if (FAILED(hr)) {
ICreateDevEnum_Release(pCreateDevEnum);
return hr;
}
while (IEnumMoniker_Next(pEnumCat, 1, &pMonikerCat, NULL) == S_OK)
{
......
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