Author: cgutman
Date: Thu Jan 26 03:24:47 2012
New Revision: 55193
URL:
http://svn.reactos.org/svn/reactos?rev=55193&view=rev
Log:
[NTOSKRNL]
- Add a hack so that registering an interface after a remove and reconnect works
Modified:
branches/usb-bringup-trunk/ntoskrnl/io/iomgr/deviface.c
Modified: branches/usb-bringup-trunk/ntoskrnl/io/iomgr/deviface.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/ntoskrnl/io/i…
==============================================================================
--- branches/usb-bringup-trunk/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] Thu Jan 26
03:24:47 2012
@@ -1145,7 +1145,12 @@
/* 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))
{