int readn = 0;
mmfile_seek(pData->hFile, pData->tagOffset, MMFILE_SEEK_SET);
- mm_file_retvm_if_fails(DEBUG, hTag->fileLen > 0, false);
+ mm_file_retvm_if_fails(DEBUG, hTag->tagV2Info.tagLen > 0, false);
- tagBuff = g_malloc0(hTag->fileLen);
+ tagBuff = g_malloc0(hTag->tagV2Info.tagLen);
- readn = mmfile_read(pData->hFile, tagBuff, hTag->fileLen);
- if (readn != hTag->fileLen) {
- debug_error(DEBUG, "failed to read. %d, %lld\n", readn, hTag->fileLen);
+ readn = mmfile_read(pData->hFile, tagBuff, hTag->tagV2Info.tagLen);
+ if (readn != hTag->tagV2Info.tagLen) {
+ debug_error(DEBUG, "failed to read. %d, %d\n", readn, hTag->tagV2Info.tagLen);
mmfile_free(tagBuff);
return false;
}