… | |
… | |
270 | psiconv_progress(lev+1,off + len - 1, |
270 | psiconv_progress(lev+1,off + len - 1, |
271 | "End of bullet data (total length: %08x)",len); |
271 | "End of bullet data (total length: %08x)",len); |
272 | |
272 | |
273 | if (length) |
273 | if (length) |
274 | *length = len; |
274 | *length = len; |
275 | return res; |
275 | return 0; |
276 | |
276 | |
277 | ERROR3: |
277 | ERROR3: |
278 | psiconv_free_color((*result)->color); |
278 | psiconv_free_color((*result)->color); |
279 | ERROR2: |
279 | ERROR2: |
280 | free (result); |
280 | free (result); |
… | |
… | |
542 | result->right_border = temp_border; |
542 | result->right_border = temp_border; |
543 | len += leng; |
543 | len += leng; |
544 | break; |
544 | break; |
545 | case 0x15: |
545 | case 0x15: |
546 | psiconv_progress(lev+3,off+len,"Going to read bullet"); |
546 | psiconv_progress(lev+3,off+len,"Going to read bullet"); |
547 | if ((res = psiconv_parse_bullet(buf,lev+3,off+len,&leng,&temp_bullet))); |
547 | if ((res = psiconv_parse_bullet(buf,lev+3,off+len,&leng,&temp_bullet))) |
548 | goto ERROR1; |
548 | goto ERROR1; |
549 | psiconv_free_bullet(result->bullet); |
549 | psiconv_free_bullet(result->bullet); |
550 | result->bullet = temp_bullet; |
550 | result->bullet = temp_bullet; |
551 | len += leng; |
551 | len += leng; |
552 | break; |
552 | break; |