mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
[UMPNPMGR] PNP_CreateDevInst: Do not create a normal device if it is already present
This commit is contained in:
parent
b0b925d2b0
commit
33a0c66f30
1 changed files with 7 additions and 0 deletions
|
@ -3097,6 +3097,13 @@ PNP_CreateDevInst(
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Fail, if the device exists and is present */
|
||||
if ((hKey != NULL) && (IsPresentDeviceInstanceID(pszDeviceID)))
|
||||
{
|
||||
ret = CR_ALREADY_SUCH_DEVINST;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Create the device instance */
|
||||
ret = CreateDeviceInstance(pszDeviceID, FALSE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue