summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Msg_Export/src/options.cpp')
-rwxr-xr-xplugins/Msg_Export/src/options.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index 64d2a01d83..88f4f6001f 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -144,10 +144,8 @@ struct ExportDialogData {
HWND hDialog;
};
-void exportContactsMessages(void *p)
+void __cdecl exportContactsMessages(ExportDialogData *data)
{
- ExportDialogData *data = (ExportDialogData *)p;
-
HWND hDlg = data->hDialog;
HWND hProg = GetDlgItem(hDlg, IDC_EXPORT_PROGRESS);
HWND hStatus = GetDlgItem(hDlg, IDC_EXP_ALL_STATUS);
@@ -291,7 +289,7 @@ int nExportCompleatList(HWND hParent, bool bOnlySelected)
ShowWindow(hDlg, SW_SHOWNORMAL);
// Process the export in other thread
- mir_forkthread(&exportContactsMessages, data);
+ mir_forkThread<ExportDialogData>(&exportContactsMessages, data);
return 0;
}