Module: wine Branch: master Commit: ac352615b1ddd51dc4db1a20bf4c817d523be375 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ac352615b1ddd51dc4db1a20bf...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat Jan 12 16:52:20 2008 +0000
setupapi: Fix dead code (Coverity).
---
dlls/setupapi/devinst.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
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;