Browse Source

better the other way around

COM-121
Volker Birk 6 years ago
parent
commit
3bbb48db52
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      CpEpEngine.cpp
  2. +1
    -1
      pEp_utility.cpp

+ 2
- 0
CpEpEngine.cpp View File

@ -972,6 +972,8 @@ PEP_STATUS CpEpEngine::messageToSend(void * obj, const message *msg)
return PEP_ILLEGAL_VALUE;
text_message _msg;
memset(&_msg, 0, sizeof(text_message));
text_message_from_C(&_msg, msg);
CpEpEngine *me = (CpEpEngine *) obj;
HRESULT r = me->Fire_MessageToSend(&_msg);


+ 1
- 1
pEp_utility.cpp View File

@ -289,7 +289,7 @@ namespace pEp {
assert(msg2);
assert(msg);
memset(msg2, 0, sizeof(text_message));
clear_text_message(msg2);
msg2->dir = (pEp_msg_direction) msg->dir;
msg2->id = bstr(msg->id);


Loading…
Cancel
Save