Commit 78d2a091 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

msdmo: Avoid leaking key handles in DMOGetTypes().

parent 37b926b8
......@@ -741,5 +741,7 @@ HRESULT WINAPI DMOGetTypes(REFCLSID clsid, ULONG input_count, ULONG *ret_input_c
if (!ret || ret == ERROR_MORE_DATA)
*ret_output_count = min(output_count, size / sizeof(DMO_PARTIAL_MEDIATYPE));
RegCloseKey(key);
RegCloseKey(root);
return 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