From c5bcf760422b1938dce3f9420097a4961285e614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Wed, 1 Jun 2005 23:09:36 +0000 Subject: [PATCH] Don't close port if opening failed svn path=/trunk/; revision=15722 --- reactos/drivers/bus/serenum/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/drivers/bus/serenum/detect.c b/reactos/drivers/bus/serenum/detect.c index d6a035a40dc..e2d297dfc4b 100644 --- a/reactos/drivers/bus/serenum/detect.c +++ b/reactos/drivers/bus/serenum/detect.c @@ -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;