aboutsummaryrefslogtreecommitdiffstats
path: root/api/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/adapter.c')
-rw-r--r--api/adapter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/adapter.c b/api/adapter.c
index 9d2a0b4..973316e 100644
--- a/api/adapter.c
+++ b/api/adapter.c
@@ -1597,10 +1597,10 @@ CreateAdapter(
PropertyType == DEVPROP_TYPE_NTSTATUS)
{
Result = RtlNtStatusToDosError(ProblemStatus);
+ _Analysis_assume_(Result != ERROR_SUCCESS);
if (ProblemStatus != STATUS_PNP_DEVICE_CONFIGURATION_PENDING || Tries == 999)
{
LOG_ERROR(L"Failed to setup adapter", Result);
- Result = ERROR_GEN_FAILURE;
goto cleanupTcpipInterfaceRegKey;
}
Sleep(10);
@@ -1608,6 +1608,7 @@ CreateAdapter(
else
break;
}
+ Result = ERROR_SUCCESS;
*Adapter = a;