setupapi: Fix dead code (Coverity).
This commit is contained in:
parent
0f806dfd6b
commit
ac352615b1
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue