summaryrefslogtreecommitdiff
path: root/plugins/IEHistory/src/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/IEHistory/src/services.cpp')
-rw-r--r--plugins/IEHistory/src/services.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/IEHistory/src/services.cpp b/plugins/IEHistory/src/services.cpp
index 7a86e17d08..9ad611dd62 100644
--- a/plugins/IEHistory/src/services.cpp
+++ b/plugins/IEHistory/src/services.cpp
@@ -45,8 +45,8 @@ INT_PTR ShowContactHistoryService(WPARAM wParam, LPARAM lParam)
int count = db_get_dw(NULL, ModuleName, "EventsToLoad", 0);
int loadInBackground = db_get_b(NULL, ModuleName, "UseWorkerThread", 0);
HistoryWindowData *data;
- data = (HistoryWindowData *) malloc(sizeof(HistoryWindowData));
- data->contact = (MCONTACT) wParam;
+ data = (HistoryWindowData *)malloc(sizeof(HistoryWindowData));
+ data->contact = (MCONTACT)wParam;
data->hIEView = NULL;
data->itemsPerPage = count;
data->index = 0;
@@ -54,9 +54,10 @@ INT_PTR ShowContactHistoryService(WPARAM wParam, LPARAM lParam)
data->loadMethod = (loadInBackground) ? LOAD_IN_BACKGROUND : 0;
historyDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_HISTORY), parent, HistoryDlgProc);
SetWindowLongPtr(historyDlg, DWLP_USER, (LONG_PTR)data);
-
- WindowList_Add(hOpenWindowsList, historyDlg, (MCONTACT) wParam);
- }else
+
+ WindowList_Add(hOpenWindowsList, historyDlg, (MCONTACT)wParam);
+ }
+ else
SetForegroundWindow(historyDlg);
ShowWindow(historyDlg, SW_SHOWNORMAL);
return 0;