diff options
Diffstat (limited to 'MySpace/proto.cpp')
-rw-r--r-- | MySpace/proto.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/MySpace/proto.cpp b/MySpace/proto.cpp index 9dc0815..8dcd810 100644 --- a/MySpace/proto.cpp +++ b/MySpace/proto.cpp @@ -166,10 +166,8 @@ int ProtoRecvMessage(WPARAM wParam, LPARAM lParam) { dbei.flags = (pre->flags & PREF_CREATEREAD) ? DBEF_READ : 0;
dbei.flags |= (pre->flags & PREF_RTL) ? DBEF_RTL : 0;
dbei.flags |= (pre->flags & PREF_UTF) ? DBEF_UTF : 0;
- dbei.eventType = EVENTTYPE_MESSAGE;
+ dbei.eventType = pre->lParam;
dbei.cbBlob = strlen(pre->szMessage) + 1;
- if ( pre->flags & PREF_UNICODE )
- dbei.cbBlob *= ( sizeof( wchar_t )+1 );
dbei.pBlob = (PBYTE)pre->szMessage;
CallService(MS_DB_EVENT_ADD, (WPARAM)ccs->hContact, (LPARAM)&dbei);
|