mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 07:03:57 +00:00
[NTOSKRNL]
- Add a hack so that registering an interface after a remove and reconnect works svn path=/branches/usb-bringup-trunk/; revision=55193
This commit is contained in:
parent
2be02c1c91
commit
f7c472bda7
1 changed files with 5 additions and 0 deletions
|
@ -1145,7 +1145,12 @@ IoRegisterDeviceInterface(IN PDEVICE_OBJECT PhysicalDeviceObject,
|
|||
|
||||
/* If the symbolic link already exists, return an informational success status */
|
||||
if (SymLinkStatus == STATUS_OBJECT_NAME_COLLISION)
|
||||
{
|
||||
/* HACK: Delete the existing symbolic link and update it to the new PDO name */
|
||||
IoDeleteSymbolicLink(SymbolicLinkName);
|
||||
IoCreateSymbolicLink(SymbolicLinkName, &PdoNameInfo->Name);
|
||||
SymLinkStatus = STATUS_OBJECT_NAME_EXISTS;
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(SymLinkStatus))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue