mirror of
https://github.com/reactos/reactos.git
synced 2025-07-13 15:14:12 +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
|
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 */
|
/* Create the device instance */
|
||||||
ret = CreateDeviceInstance(pszDeviceID, FALSE);
|
ret = CreateDeviceInstance(pszDeviceID, FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue