Zhiyi Zhang : setupapi: Fix a registry key handle leak.
Alexandre Julliard
julliard at winehq.org
Fri Apr 17 16:12:58 CDT 2020
Module: wine
Branch: master
Commit: e570c2fe591ee2680bd18ef31e9d657f3d0f389b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e570c2fe591ee2680bd18ef31e9d657f3d0f389b
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Fri Apr 17 21:51:01 2020 +0800
setupapi: Fix a registry key handle leak.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/setupapi/devinst.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index a21959a262..617e3f54c3 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -4230,6 +4230,7 @@ static LSTATUS get_device_property(struct device *device, const DEVPROPKEY *prop
{
value_size = prop_buff_size;
ls = RegQueryValueExW(hkey, NULL, NULL, &value_type, prop_buff, &value_size);
+ RegCloseKey(hkey);
}
switch (ls)
More information about the wine-cvs
mailing list