forked from len0rd/rockbox
merf. oops.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6360 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
929e7837cd
commit
08dae4f66e
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ int tagdb_init(void)
|
|||
#ifdef LITTLE_ENDIAN
|
||||
p=(int *)&tagdbheader;
|
||||
for(i=0;i<17;i++) {
|
||||
*p=BE32(p);
|
||||
*p=BE32(*p);
|
||||
p++;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -168,7 +168,7 @@ int db_load(struct tree_context* c)
|
|||
return -1;
|
||||
|
||||
#ifdef LITTLE_ENDIAN
|
||||
for (i=0; i<albumarraylen; i++)
|
||||
for (i=0; i<tagdbheader.albumarraylen; i++)
|
||||
safeplace[i] = BE32(safeplace[i]);
|
||||
#endif
|
||||
offset = safeplace[0];
|
||||
|
@ -187,7 +187,7 @@ int db_load(struct tree_context* c)
|
|||
return -1;
|
||||
|
||||
#ifdef LITTLE_ENDIAN
|
||||
for (i=0; i<songarraylen; i++) {
|
||||
for (i=0; i<tagdbheader.songarraylen; i++) {
|
||||
safeplace[i] = BE32(safeplace[i]);
|
||||
DEBUGF("db_load songs4album song %d: 0x%x\n",i,safeplace[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue