--- psiconv/trunk/lib/psiconv/parse_image.c 2000/12/15 00:21:51 64 +++ psiconv/trunk/lib/psiconv/parse_image.c 2000/12/15 01:16:43 65 @@ -38,7 +38,7 @@ psiconv_progress(lev+2,off+len,"Going to read the list length"); listlen = psiconv_read_u32(buf,lev+2,off+len,&res); - if (!res) + if (res) goto ERROR2; psiconv_debug(lev+2,off+len,"List length: %08x",listlen); len += 4; @@ -46,7 +46,7 @@ psiconv_progress(lev+2,off+len,"Going to read the list"); for (i = 0; i < listlen; i++) { temp = psiconv_read_u32(buf,lev+2,off+len,&res); - if (!res) + if (res) goto ERROR2; if ((res = psiconv_list_add(*result,&temp))) goto ERROR2;