Don't close port if opening failed
Modified: trunk/reactos/drivers/bus/serenum/detect.c
--- trunk/reactos/drivers/bus/serenum/detect.c 2005-06-01 21:57:52 UTC (rev 15721) +++ trunk/reactos/drivers/bus/serenum/detect.c 2005-06-01 23:09:36 UTC (rev 15722) @@ -484,7 +484,7 @@
/* Open port */ Status = SerenumSendIrp(LowerDevice, IRP_MJ_CREATE);
- if (!NT_SUCCESS(Status)) goto ByeBye;
+ if (!NT_SUCCESS(Status)) return Status;
/* Reset UART */ CHECKPOINT;