[NTOS:EX] Fix a loop bug

This commit is contained in:
Timo Kreuzer 2024-03-08 20:53:12 +02:00
parent 01c05f33dc
commit 7fff216bed
1 changed files with 3 additions and 2 deletions

View File

@ -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,