Don't close port if opening failed

svn path=/trunk/; revision=15722
This commit is contained in:
Hervé Poussineau 2005-06-01 23:09:36 +00:00
parent 793415253c
commit c5bcf76042

View file

@ -484,7 +484,7 @@ SerenumDetectLegacyDevice(
/* Open port */
Status = SerenumSendIrp(LowerDevice, IRP_MJ_CREATE);
if (!NT_SUCCESS(Status)) goto ByeBye;
if (!NT_SUCCESS(Status)) return Status;
/* Reset UART */
CHECKPOINT;