--- psiconv/trunk/lib/psiconv/parse_word.c 2000/12/27 02:13:52 81 +++ psiconv/trunk/lib/psiconv/parse_word.c 2000/12/27 23:20:45 82 @@ -139,11 +139,11 @@ len += 0x04; psiconv_progress(lev+2,off+len,"Going to read display size"); - (*result)->cursor_position = psiconv_read_u32(buf,lev+2,off + len,&res); + (*result)->display_size = psiconv_read_u32(buf,lev+2,off + len,&res); if (res) goto ERROR2; psiconv_debug(lev+2,off+len,"Display size: %08x", - (*result)->cursor_position); + (*result)->display_size); len += 0x04; if (length) @@ -325,6 +325,20 @@ len += leng; } + psiconv_progress(lev+2,off+len,"Reading trailing bytes"); + for (i = 0; i < 3; i++) { + temp = psiconv_read_u8(buf,lev+3,off+len,&res); + if (res) + goto ERROR4; + if (temp != 0xff) { + psiconv_warn(lev+3,off+len,"Unknown trailing style byte"); + psiconv_debug(lev+3,off+len,"Trailing byte: %02x expected, read %02x", + 0xff,temp); + } else + psiconv_debug(lev+3,off+len,"Read trailing byte 0xff"); + len++; + } + if (length) *length = len;