msdmo: Avoid leaking key handles in DMOGetTypes().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
37b926b8fe
commit
78d2a0919e
|
@ -741,5 +741,7 @@ HRESULT WINAPI DMOGetTypes(REFCLSID clsid, ULONG input_count, ULONG *ret_input_c
|
||||||
if (!ret || ret == ERROR_MORE_DATA)
|
if (!ret || ret == ERROR_MORE_DATA)
|
||||||
*ret_output_count = min(output_count, size / sizeof(DMO_PARTIAL_MEDIATYPE));
|
*ret_output_count = min(output_count, size / sizeof(DMO_PARTIAL_MEDIATYPE));
|
||||||
|
|
||||||
|
RegCloseKey(key);
|
||||||
|
RegCloseKey(root);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue