setupapi: Fix dead code (Coverity).

This commit is contained in:
Andrew Talbot 2008-01-12 16:52:20 +00:00 committed by Alexandre Julliard
parent 0f806dfd6b
commit ac352615b1
1 changed files with 1 additions and 1 deletions

View File

@ -3813,7 +3813,7 @@ BOOL WINAPI SetupDiDeleteDevRegKey(
SetLastError(ERROR_INVALID_FLAGS); SetLastError(ERROR_INVALID_FLAGS);
return FALSE; return FALSE;
} }
if (KeyType != DIREG_DEV && KeyType != DIREG_DRV) if (KeyType != DIREG_DEV && KeyType != DIREG_DRV && KeyType != DIREG_BOTH)
{ {
SetLastError(ERROR_INVALID_FLAGS); SetLastError(ERROR_INVALID_FLAGS);
return FALSE; return FALSE;