Skip to content

Commit 14c5835

Browse files
umgfoinjengelh
authored andcommitted
exmdb: restore subject properties read via instance_read_message losing the proptag
Fix missing property tag assignments in commit a3ff02a (exmdb: abolish sprintf,strcpy calls) Signed-off-by: umgfoin <umgfoin@users.noreply.github.com> Fixes: gromox-3.4-109-ga3ff02a4b
1 parent c536ac6 commit 14c5835

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exch/exmdb/instance.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ static BOOL instance_read_message(const MESSAGE_CONTENT *src,
942942
psubject_prefix = wtf->get<char>(PR_SUBJECT_PREFIX_A);
943943
auto pvalue = std::string(znul(psubject_prefix)) + znul(pnormalized_subject);
944944
dst->proplist.ppropval[i].pvalue = common_util_dup(pvalue);
945+
dst->proplist.ppropval[i].proptag = PR_SUBJECT_A;
945946
++dst->proplist.count;
946947
} else {
947948
psubject_prefix = wtf->get<char>(PR_SUBJECT_PREFIX);
@@ -964,6 +965,7 @@ static BOOL instance_read_message(const MESSAGE_CONTENT *src,
964965
psubject_prefix = wtf->get<char>(PR_SUBJECT_PREFIX);
965966
auto pvalue = std::string(znul(psubject_prefix)) + znul(pnormalized_subject);
966967
dst->proplist.ppropval[i].pvalue = common_util_dup(pvalue);
968+
dst->proplist.ppropval[i].proptag = PR_SUBJECT;
967969
++dst->proplist.count;
968970
}
969971
if (src->children.prcpts == nullptr) {

0 commit comments

Comments
 (0)