Commit d5a5800b authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

dxdiagn: Check ICreateDevEnum_CreateClassEnumerator result for S_OK.

parent 8cbf2765
...@@ -1652,7 +1652,7 @@ static HRESULT build_directshowfilters_tree(IDxDiagContainerImpl_Container *node ...@@ -1652,7 +1652,7 @@ static HRESULT build_directshowfilters_tree(IDxDiagContainerImpl_Container *node
return hr; return hr;
hr = ICreateDevEnum_CreateClassEnumerator(pCreateDevEnum, &CLSID_ActiveMovieCategories, &pEmCat, 0); hr = ICreateDevEnum_CreateClassEnumerator(pCreateDevEnum, &CLSID_ActiveMovieCategories, &pEmCat, 0);
if (FAILED(hr)) if (hr != S_OK)
goto cleanup; goto cleanup;
while (IEnumMoniker_Next(pEmCat, 1, &pMCat, NULL) == S_OK) while (IEnumMoniker_Next(pEmCat, 1, &pMCat, 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