[PATCH] setupapi: Add a missing return statement (Coverity).
20 Feb
2019
20 Feb
'19
10:57 a.m.
Signed-off-by: Sven Baars <sven.wine(a)gmail.com> --- dlls/setupapi/devinst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index 7769284d54..888bed051a 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -2585,6 +2585,7 @@ HKEY WINAPI SetupDiCreateDeviceInterfaceRegKeyW(HDEVINFO devinfo, devinfo, iface_data, reserved, access, hinf, debugstr_w(section)); if (!(iface = get_device_iface(devinfo, iface_data))) + return INVALID_HANDLE_VALUE; if (hinf && !section) { -- 2.17.1
2493
Age (days ago)
2493
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sven Baars