diff --git a/ntoskrnl/inbv/inbv.c b/ntoskrnl/inbv/inbv.c index 9c51098284f..006f96a4192 100644 --- a/ntoskrnl/inbv/inbv.c +++ b/ntoskrnl/inbv/inbv.c @@ -109,8 +109,9 @@ FindBitmapResource( /* Loop the driver list */ ListHead = &LoaderBlock->LoadOrderListHead; - NextEntry = ListHead->Flink; - while (NextEntry != ListHead) + for (NextEntry = ListHead->Flink; + NextEntry != ListHead; + NextEntry = NextEntry->Flink) { /* Get the entry */ LdrEntry = CONTAINING_RECORD(NextEntry,