--- psiconv/trunk/lib/psiconv/parse_common.c 1999/10/29 21:14:58 24 +++ psiconv/trunk/lib/psiconv/parse_common.c 1999/12/04 00:40:10 43 @@ -46,6 +46,16 @@ psiconv_progress(lev+2,off+len,"Going to read UID1 to UID3"); (*result)->uid1 = psiconv_read_u32(buf,lev+2,off+len); psiconv_debug(lev+2,off+len,"UID1: %08x",(*result)->uid1); + if ((*result)->uid1 == PSICONV_ID_CLIPART) { + /* That's all folks... */ + (*result)->file = psiconv_clipart_file; + (*result)->uid2 = 0; + (*result)->uid3 = 0; + (*result)->checksum = 0; + len += 4; + psiconv_debug(lev+2,off+len,"File is a Clipart file"); + goto DONE; + } if ((*result)->uid1 != PSICONV_ID_PSION5) { psiconv_warn(lev+2,off+len,"UID1 has unknown value. This is probably " "not a (parsable) Psion 5 file"); @@ -97,7 +107,8 @@ res = -1; } len += 4; - + +DONE: if (length) *length = len; @@ -149,7 +160,7 @@ *length = len; psiconv_progress(lev+1,off+len-1,"End of section table section " - "(total length: %08x", len); + "(total length: %08x)", len); return res; }