result r = GetLastResult();
if (IsFailed(r))
{
+ ClearLastResult();
+
SysLog(NID_CNT, "[%s] Failed to perform GetFileExtension operation.", GetErrorMessage(r));
unique_ptr<char[]> pTempPath(_StringConverter::CopyToCharArrayN(pContentData->contentPath));
r = mimeType.Append(tempType);
SysTryReturn(NID_CNT, !IsFailed(r), UuId::GetInvalidUuId(), E_OUT_OF_MEMORY,
"[E_OUT_OF_MEMORY] Failed to perform Append operation.");
+
}
// If the content format is JPG and it has GPS data, it will be saved in database automatically.