*MAPIEx: Fixed Tokenize() problem

git-svn-id: svn://ultimatepp.org/upp/trunk@8908 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2015-09-09 07:53:27 +00:00
parent 8e7407622c
commit 9b28c830ee
9 changed files with 250 additions and 926 deletions

View file

@ -21,8 +21,8 @@
#ifdef _WIN32_WCE
#include <cemapi.h>
#pragma comment(lib,"cemapi.lib")
#pragma comment(lib,"pimstore.lib")
#pragma comment(lib, "cemapi.lib")
#pragma comment(lib, "pimstore.lib")
#endif
@ -43,6 +43,7 @@ MAPIFunctions &MF() {
INITBLOCK {
MF();
if (!MAPIEx::Init())
MessageBox(::GetActiveWindow(), "MAPI Error", "Impossible to initialize MAPI",
MB_ICONSTOP|MB_OK|MB_APPLMODAL);
@ -478,7 +479,7 @@ bool MAPIEx::Notify(LPNOTIFCALLBACK lpfnCallback, LPVOID lpvContext, ULONG ulEve
if(m_sink)
m_pMsgStore->Unadvise(m_sink);
MAPISink* pAdviseSink = new MAPISink(lpfnCallback, lpvContext);
if(m_pMsgStore->Advise(0, NULL,ulEventMask, pAdviseSink, &m_sink) == S_OK)
if(m_pMsgStore->Advise(0, NULL, ulEventMask, pAdviseSink, &m_sink) == S_OK)
return true;
delete pAdviseSink;
m_sink = 0;