|
|
@@ -33,9 +33,9 @@ int constrcut_rvc_file_header(char* pbuffer, uint32_t* ulen, const char* pfilena
|
|
|
}
|
|
|
|
|
|
//5. 源文件文件大小
|
|
|
- unsigned long usize = get_srcfile_size(pfilename);
|
|
|
- memcpy(pbuffer+udatalen, &usize, sizeof(unsigned long));
|
|
|
- udatalen += sizeof(unsigned long);
|
|
|
+ uint32_t usize = get_srcfile_size(pfilename);
|
|
|
+ memcpy(pbuffer+udatalen, &usize, sizeof(uint32_t));
|
|
|
+ udatalen += sizeof(uint32_t);
|
|
|
|
|
|
//6. 源文件文件名
|
|
|
char strname[MAX_PATH] = {0};
|
|
|
@@ -80,8 +80,8 @@ int get_rvc_file_header_info(rvc_fileheader_t* pdata, char* pheadbuffer, uint32_
|
|
|
return iret;
|
|
|
}
|
|
|
//5. 源文件文件大小
|
|
|
- memcpy(&pdata->usrcfilelen, pheadbuffer+uindex, sizeof(unsigned long));
|
|
|
- uindex += sizeof(unsigned long);
|
|
|
+ memcpy(&pdata->usrcfilelen, pheadbuffer+uindex, sizeof(uint32_t));
|
|
|
+ uindex += sizeof(uint32_t);
|
|
|
//6. 源文件文件名
|
|
|
if (0 == get_tag_value_from_buffer((char*)pdata->strsrcfilename, MAX_PATH, pheadbuffer+uindex, ulen - uindex)){
|
|
|
uindex += (strlen(pdata->strsrcfilename) + sizeof(uint32_t));
|