setupapi: Fix a registry key handle leak.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ee12fb0e32
commit
e570c2fe59
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue