Author: tfaber
Date: Thu Sep 15 13:37:26 2016
New Revision: 72683
URL:
http://svn.reactos.org/svn/reactos?rev=72683&view=rev
Log:
[LIBUSB]
- Correctly fail IRP_MN_START_DEVICE if PnpStart failed. Spotted by Vadim Galyant.
CORE-11929 #resolve
Modified:
trunk/reactos/sdk/lib/drivers/libusb/hcd_controller.cpp
Modified: trunk/reactos/sdk/lib/drivers/libusb/hcd_controller.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/libusb/hcd…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/libusb/hcd_controller.cpp [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/libusb/hcd_controller.cpp [iso-8859-1] Thu Sep 15
13:37:26 2016
@@ -417,10 +417,13 @@
Status = m_Hardware->PnpStart(RawResourceList,
TranslatedResourceList);
}
- //
- // enable symbolic link
- //
- Status = SetSymbolicLink(TRUE);
+ if (NT_SUCCESS(Status))
+ {
+ //
+ // enable symbolic link
+ //
+ Status = SetSymbolicLink(TRUE);
+ }
}
DPRINT("[%s] HandlePnp IRP_MN_START FDO: Status %x\n", m_USBType
,Status);