Skip to content

Commit d394c12

Browse files
grammmikejengelh
authored andcommitted
ews: updated attachment handling for inline images
Items with the inline flag (ATT_MHTML_REF) are now reported as inline over EWS. References: GXL-571
1 parent 795259e commit d394c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exch/ews/structures.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,8 +1329,8 @@ tAttachment::tAttachment(const sAttachmentId& aid, const TPROPVAL_ARRAY& props)
13291329
fromProp(props.find(PR_ATTACH_SIZE), Size);
13301330
fromProp(props.find(PR_LAST_MODIFICATION_TIME), LastModifiedTime);
13311331
auto flags = props.get<const uint32_t>(PR_ATTACH_FLAGS);
1332-
if (flags)
1333-
IsInline = *flags & ATT_MHTML_REF;
1332+
if (flags != nullptr && *flags & ATT_MHTML_REF)
1333+
IsInline = true;
13341334
}
13351335

13361336
sAttachment tAttachment::create(const sAttachmentId& aid, const TPROPVAL_ARRAY& props)

0 commit comments

Comments
 (0)