修复bug

heatbeat
Matthew 3 months ago
parent cd0a6befd6
commit 3033c8a68d

@ -3923,7 +3923,7 @@ bool CPhoneDevice::PostProcessPhoto(const PHOTO_INFO& photoInfo, const vector<ID
res = (rename(tmpPath.c_str(), fullPath.c_str()) == 0); res = (rename(tmpPath.c_str(), fullPath.c_str()) == 0);
if (res) if (res)
{ {
imgFileSize = getFileSize(tmpPath); imgFileSize = getFileSize(fullPath);
if (imgFileSize == 0 || imgFileSize == -1) if (imgFileSize == 0 || imgFileSize == -1)
{ {
XYLOG(XYLOG_SEVERITY_ERROR, "Empty File after rename %s", fullPath.c_str() + m_appPath.size()); XYLOG(XYLOG_SEVERITY_ERROR, "Empty File after rename %s", fullPath.c_str() + m_appPath.size());

Loading…
Cancel
Save