mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTOS:EX] Fix a loop bug
This commit is contained in:
parent
01c05f33dc
commit
7fff216bed
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue