Correctly access platform data via function argument.
[AROS.git] / compiler / arossupport / libfindtagitem.c
blob7e494985b69e29c7b5f553776aa8b2dbfc8388e3
1 #include <proto/arossupport.h>
3 struct TagItem *LibFindTagItem(Tag tagValue, const struct TagItem *tagList)
5 struct TagItem *tstate = (struct TagItem *)tagList;
6 struct TagItem *tag;
8 while ((tag = LibNextTagItem(&tstate)))
10 if (tag->ti_Tag == tagValue)
11 return tag;
14 return NULL;