[NTOS:EX] Fix a loop bug

This commit is contained in:
Timo Kreuzer
2024-03-19 07:43:20 +01:00
parent 01c05f33dc
commit 7fff216bed
+3 -2
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,