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:
Zhiyi Zhang 2020-04-17 21:51:01 +08:00 committed by Alexandre Julliard
parent ee12fb0e32
commit e570c2fe59
1 changed files with 1 additions and 0 deletions

View File

@ -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)