diff --git a/reactos/lib/setupapi/devinst.c b/reactos/lib/setupapi/devinst.c index 97dcb84e31c..cc52445f3e6 100644 --- a/reactos/lib/setupapi/devinst.c +++ b/reactos/lib/setupapi/devinst.c @@ -4044,6 +4044,7 @@ AddDriverToList( InsertHeadList(PreviousEntry, &driverInfo->ListEntry); break; } + PreviousEntry = PreviousEntry->Flink; } if (PreviousEntry == DriverListHead) {