TOC sanity check error value changed

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6458 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Dominik Kuhlen
2003-06-01 16:28:50 +00:00
parent 4edf5def96
commit 4173d08d2b

View File

@@ -168,7 +168,7 @@ sx330z_get_toc_page(Camera *camera,GPContext *context,struct traveler_toc_page *
sx330z_fill_toc_page(tocbuf,TOC); /* convert */
/* TOC sanity check */
if ((TOC->numEntries<0)||(TOC->numEntries>25)) return(GP_ERROR);
if ((TOC->numEntries<0)||(TOC->numEntries>25)) return(GP_ERROR_CORRUPTED_DATA);
return(GP_OK);
} /* get toc */