diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-03 16:02:14 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-03 16:02:14 +0200 |
commit | 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a (patch) | |
tree | 412a28ef6a572efc7039df1c363bf47a3dec4b19 /plugins/Msg_Export/src/options.cpp | |
parent | 9a6f750a482d1d1ebf4281bb7bf8133e547ad438 (diff) |
mir_forkThread<typename> - stronger typizatioin for thread function parameter
Diffstat (limited to 'plugins/Msg_Export/src/options.cpp')
-rwxr-xr-x | plugins/Msg_Export/src/options.cpp | 6 |
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;
}
|