/[public]/psiconv/trunk/lib/psiconv/parse_image.c
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/parse_image.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 64 Revision 65
36 if (!((*result) = psiconv_list_new(sizeof(psiconv_u32)))) 36 if (!((*result) = psiconv_list_new(sizeof(psiconv_u32))))
37 goto ERROR1; 37 goto ERROR1;
38 38
39 psiconv_progress(lev+2,off+len,"Going to read the list length"); 39 psiconv_progress(lev+2,off+len,"Going to read the list length");
40 listlen = psiconv_read_u32(buf,lev+2,off+len,&res); 40 listlen = psiconv_read_u32(buf,lev+2,off+len,&res);
41 if (!res) 41 if (res)
42 goto ERROR2; 42 goto ERROR2;
43 psiconv_debug(lev+2,off+len,"List length: %08x",listlen); 43 psiconv_debug(lev+2,off+len,"List length: %08x",listlen);
44 len += 4; 44 len += 4;
45 45
46 psiconv_progress(lev+2,off+len,"Going to read the list"); 46 psiconv_progress(lev+2,off+len,"Going to read the list");
47 for (i = 0; i < listlen; i++) { 47 for (i = 0; i < listlen; i++) {
48 temp = psiconv_read_u32(buf,lev+2,off+len,&res); 48 temp = psiconv_read_u32(buf,lev+2,off+len,&res);
49 if (!res) 49 if (res)
50 goto ERROR2; 50 goto ERROR2;
51 if ((res = psiconv_list_add(*result,&temp))) 51 if ((res = psiconv_list_add(*result,&temp)))
52 goto ERROR2; 52 goto ERROR2;
53 psiconv_debug(lev+3,off+len,"Offset: %08x",temp); 53 psiconv_debug(lev+3,off+len,"Offset: %08x",temp);
54 len += 4; 54 len += 4;

Legend:
Removed from v.64  
changed lines
  Added in v.65

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26