mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
- Actually advance current item pointer to the next one when traversing a linked list. Fixes an infinite loop when building USB interface.
svn path=/trunk/; revision=39770
This commit is contained in:
parent
0f11de6b0d
commit
22fa5a4f23
1 changed files with 1 additions and 0 deletions
|
@ -1246,6 +1246,7 @@ dev_mgr_build_usb_if(PUSB_CONFIGURATION pcfg, PUSB_INTERFACE pif, PUSB_INTERFACE
|
||||||
pthis_if = (PUSB_INTERFACE) (((PBYTE) pthis) - offsetof(USB_INTERFACE, altif_list));
|
pthis_if = (PUSB_INTERFACE) (((PBYTE) pthis) - offsetof(USB_INTERFACE, altif_list));
|
||||||
pthis_if->altif_count = pif->altif_count;
|
pthis_if->altif_count = pif->altif_count;
|
||||||
ListNext(&pif->altif_list, pthis, pnext);
|
ListNext(&pif->altif_list, pthis, pnext);
|
||||||
|
pthis = pnext;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue