… | |
… | |
51 | psiconv_progress(config,lev+2,off+len,"Going to read section id"); |
51 | psiconv_progress(config,lev+2,off+len,"Going to read section id"); |
52 | temp = psiconv_read_u32(config,buf,lev+2,off+len,&res); |
52 | temp = psiconv_read_u32(config,buf,lev+2,off+len,&res); |
53 | if (res) |
53 | if (res) |
54 | goto ERROR2; |
54 | goto ERROR2; |
55 | if (temp != PSICONV_ID_TEXTED_BODY) { |
55 | if (temp != PSICONV_ID_TEXTED_BODY) { |
56 | psiconv_warn(config,lev+2,off+len, |
56 | psiconv_error(config,lev+2,off+len, |
57 | "Page header section body id not found"); |
57 | "Page header section body id not found"); |
58 | psiconv_debug(config,lev+2,off+len, |
58 | psiconv_debug(config,lev+2,off+len, |
59 | "Page body id: read %08x, expected %08x",temp, |
59 | "Page body id: read %08x, expected %08x",temp, |
60 | PSICONV_ID_TEXTED); |
60 | PSICONV_ID_TEXTED); |
61 | res = -PSICONV_E_PARSE; |
61 | res = -PSICONV_E_PARSE; |
… | |
… | |
132 | ERROR3: |
132 | ERROR3: |
133 | psiconv_free_text_and_layout((*result)->paragraphs); |
133 | psiconv_free_text_and_layout((*result)->paragraphs); |
134 | ERROR2: |
134 | ERROR2: |
135 | free (*result); |
135 | free (*result); |
136 | ERROR1: |
136 | ERROR1: |
137 | psiconv_warn(config,lev+1,off,"Reading of TextEd Section failed"); |
137 | psiconv_error(config,lev+1,off,"Reading of TextEd Section failed"); |
138 | if (length) |
138 | if (length) |
139 | *length = 0; |
139 | *length = 0; |
140 | if (!res) |
140 | if (!res) |
141 | return -PSICONV_E_NOMEM; |
141 | return -PSICONV_E_NOMEM; |
142 | else |
142 | else |