// Don't load PR_ATTACH_DATA_BIN if it's embedded in message.
// NOTE: Use RopOpenEmbeddedMessage when it is implemented.
const uint32_t attach_method = *static_cast<const uint32_t*>(properties[PR_ATTACH_METHOD]);
- if (attach_method == ATTACH_EMBEDDED_MSG)
+ if (attach_method != ATTACH_BY_VALUE)
return;
// Get Binary Data.
/** \brief Object Constructor
* \param mapi_session Session this object is to be associated with.
*/
- object(session& mapi_session, const std::string& object_type = "") throw() : m_object_type(object_type), m_session(mapi_session)
+ object(session& mapi_session, const std::string& object_type = "") throw() : m_session(mapi_session), m_object_type(object_type)
{
mapi_object_init(&m_object);
}