[PATCH] setupapi: Add a missing return statement (Coverity).

Sven Baars sven.wine at gmail.com
Wed Feb 20 04:57:21 CST 2019


Signed-off-by: Sven Baars <sven.wine at 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




More information about the wine-devel mailing list