Zebediah Figura : msdmo: Avoid leaking key handles in DMOGetTypes().

Alexandre Julliard julliard at winehq.org
Mon Jul 13 16:08:49 CDT 2020


Module: wine
Branch: master
Commit: 78d2a0919ebf7936e424effb5f54c3ff04469330
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=78d2a0919ebf7936e424effb5f54c3ff04469330

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Jul 13 09:38:04 2020 -0500

msdmo: Avoid leaking key handles in DMOGetTypes().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msdmo/dmoreg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/msdmo/dmoreg.c b/dlls/msdmo/dmoreg.c
index 8c32a8f59f..8e0680931f 100644
--- a/dlls/msdmo/dmoreg.c
+++ b/dlls/msdmo/dmoreg.c
@@ -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;
 }




More information about the wine-cvs mailing list