summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-xplugins/Msg_Export/src/options.cpp10
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp4
2 files changed, 6 insertions, 8 deletions
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index 1390af62c4..0c14b89862 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -57,9 +57,9 @@ class CLDBEvent
DWORD time;
public:
MCONTACT hUser;
- HANDLE hDbEvent;
+ MEVENT hDbEvent;
- CLDBEvent(MCONTACT hU, HANDLE hDBE )
+ CLDBEvent(MCONTACT hU, MEVENT hDBE)
{
hUser = hU;
hDbEvent = hDBE;
@@ -221,9 +221,9 @@ int nExportCompleatList(HWND hParent, bool bOnlySelected )
MCONTACT hContact = (MCONTACT)sItem.lParam;
- list< CLDBEvent > & rclCurList = AllEvents[ GetFilePathFromUser( hContact) ];
+ list<CLDBEvent> &rclCurList = AllEvents[ GetFilePathFromUser( hContact) ];
- HANDLE hDbEvent = db_event_first(hContact);
+ MEVENT hDbEvent = db_event_first(hContact);
while( hDbEvent) {
rclCurList.push_back(CLDBEvent(hContact, hDbEvent));
hDbEvent = db_event_next(hContact, hDbEvent);
@@ -260,7 +260,7 @@ int nExportCompleatList(HWND hParent, bool bOnlySelected )
list< CLDBEvent >::const_iterator iterator;
for (iterator = FileIterator->second.begin() ; iterator != FileIterator->second.end() ; ++iterator )
{
- HANDLE hDbEvent = (*iterator).hDbEvent;
+ MEVENT hDbEvent = (*iterator).hDbEvent;
nExportEvent( (WPARAM) (*iterator).hUser, (LPARAM)hDbEvent);
}
SendMessage( hProg, PBM_SETPOS, ++nCur, 0);
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 1db6774808..3adbec1191 100755
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -1408,10 +1408,8 @@ void ExportDBEventInfo(MCONTACT hContact, DBEVENTINFO &dbei )
/////////////////////////////////////////////////////////////////////
-int nExportEvent(WPARAM wparam,LPARAM lparam)
+int nExportEvent(WPARAM hContact, LPARAM hDbEvent)
{
- MCONTACT hContact = (MCONTACT)wparam;
- HANDLE hDbEvent = (HANDLE)lparam;
if ( !db_get_b(hContact,MODULE,"EnableLog",1))
return 0;