Module: wine Branch: master Commit: e570c2fe591ee2680bd18ef31e9d657f3d0f389b URL: https://source.winehq.org/git/wine.git/?a=commit;h=e570c2fe591ee2680bd18ef31...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Fri Apr 17 21:51:01 2020 +0800
setupapi: Fix a registry key handle leak.
Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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)