setupapi: Fix dead code (Coverity)

Andrew Talbot andrew.talbot at talbotville.com
Sat Jan 12 10:52:20 CST 2008


Coverity CID #632
---
Changelog:
    setupapi: Fix dead code (Coverity).

diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index 4819495..c24236c 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -3813,7 +3813,7 @@ BOOL WINAPI SetupDiDeleteDevRegKey(
         SetLastError(ERROR_INVALID_FLAGS);
         return FALSE;
     }
-    if (KeyType != DIREG_DEV && KeyType != DIREG_DRV)
+    if (KeyType != DIREG_DEV && KeyType != DIREG_DRV && KeyType != DIREG_BOTH)
     {
         SetLastError(ERROR_INVALID_FLAGS);
         return FALSE;



More information about the wine-patches mailing list