mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 22:03:07 -06:00
MAPIEx: Now it works with MinGW
git-svn-id: svn://ultimatepp.org/upp/trunk@6459 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8d8e958f8d
commit
87d2be4480
11 changed files with 950 additions and 46 deletions
|
|
@ -17,7 +17,6 @@
|
|||
// Ported to U++ Framework by Koldo. See License.txt file
|
||||
|
||||
#include "MAPIEx.h"
|
||||
//#include "MapiUtil.h"
|
||||
#include <winnls.h>
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
|
@ -457,7 +456,7 @@ int MAPIObject::GetAttachmentCount() {
|
|||
}
|
||||
cRows = pRows->cRows;
|
||||
ulCount += cRows;
|
||||
FreeProws(pRows);
|
||||
MAPIEx::FreeProws(pRows);
|
||||
} while(cRows);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -517,7 +516,7 @@ bool MAPIObject::SaveAttachment(LPCTSTR szFolder, int nIndex, LPCTSTR szFileName
|
|||
bResult = attachment.SaveAttachment(strPath);
|
||||
}
|
||||
}
|
||||
FreeProws(pRows);
|
||||
MAPIEx::FreeProws(pRows);
|
||||
if(nIndex >= 0)
|
||||
break;
|
||||
}
|
||||
|
|
@ -549,7 +548,7 @@ bool MAPIObject::DeleteAttachment(int nIndex)
|
|||
} else
|
||||
bResult = (Message()->DeleteAttach(pRows->aRow[0].lpProps[PROP_ATTACH_NUM].Value.ul,
|
||||
0, NULL, 0) == S_OK);
|
||||
FreeProws(pRows);
|
||||
MAPIEx::FreeProws(pRows);
|
||||
if(!bResult || nIndex == i)
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue