[ros-diffs] [cgutman] 55193: [NTOSKRNL] - Add a hack so that registering an interface after a remove and reconnect works
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Thu Jan 26 03:24:48 UTC 2012
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/iomgr/deviface.c?rev=55193&r1=55192&r2=55193&view=diff
==============================================================================
--- 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))
{
More information about the Ros-diffs
mailing list