author | ecalot
<ecalot> 2006-01-17 01:43:30 UTC |
committer | ecalot
<ecalot> 2006-01-17 01:43:30 UTC |
parent | 6a1d5a2432eac80f50591398af1343f2d787f40c |
PR/src/lib/xml/tree.c | +4 | -2 |
PR/src/lib/xml/unknown.c | +1 | -1 |
diff --git a/PR/src/lib/xml/tree.c b/PR/src/lib/xml/tree.c index 35c331a..18bf9a7 100644 --- a/PR/src/lib/xml/tree.c +++ b/PR/src/lib/xml/tree.c @@ -407,13 +407,15 @@ void treeStatusFolder(const char* path, const char* file, int palette, const cha status->itemCursor=NULL; } -void treeStatusItem(int value,const char* index,const char* path,const char* type,unsigned long int flags,const char* typedesc,int count, tTreeStatus* status) { +void treeStatusItem(int value,const char* index,const char* path,const char* type,unsigned long int flags,const char* typedesc,int count, int order, tTreeStatus* status) { char aux[100]; tTag* item=getTagStructure(); - sprintf(aux,"%d",value); item->tag=strallocandcopy("item"); + sprintf(aux,"%d",value); item->value=strallocandcopy(aux); + sprintf(aux,"%d",order); + item->order=strallocandcopy(aux); item->index=strallocandcopy(index); item->path=strallocandcopy(path); item->type=strallocandcopy(type); diff --git a/PR/src/lib/xml/unknown.c b/PR/src/lib/xml/unknown.c index 9299726..66e9c7d 100644 --- a/PR/src/lib/xml/unknown.c +++ b/PR/src/lib/xml/unknown.c @@ -174,7 +174,7 @@ int unknownLogAppend(const char* vFiledat,tResourceId id,const char* ext,tResour for (i=0;i<RES_TYPECOUNT;i++) unknownFile.typeCount[i]=0; /* re-initialize in 0 for next file processing */ } - treeStatusItem(id.value,translateInt2Ext(strToLower(id.index)),filename,getExtDesc(type),flags,getExtDesc(type),count,&unknownFile.status); + treeStatusItem(id.value,translateInt2Ext(strToLower(id.index)),filename,getExtDesc(type),flags,getExtDesc(type),count,id.order,&unknownFile.status); return PR_RESULT_SUCCESS; }