summaryrefslogtreecommitdiff
path: root/plugins/RecentContacts
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/RecentContacts')
-rw-r--r--plugins/RecentContacts/RecentContacts.cpp4
-rw-r--r--plugins/RecentContacts/options.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/RecentContacts/RecentContacts.cpp b/plugins/RecentContacts/RecentContacts.cpp
index 94b13bd1a7..af3a21f501 100644
--- a/plugins/RecentContacts/RecentContacts.cpp
+++ b/plugins/RecentContacts/RecentContacts.cpp
@@ -183,7 +183,7 @@ INT_PTR CALLBACK ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM
{
LASTUC_DLG_DATA *DlgDat;
- DlgDat = (LASTUC_DLG_DATA *)GetWindowLong(hDlg, GWLP_USERDATA);
+ DlgDat = (LASTUC_DLG_DATA *)GetWindowLongPtr(hDlg, GWLP_USERDATA);
HWND hList = GetDlgItem(hDlg, IDC_CONTACTS_LIST);
if (hList == NULL)
return FALSE;
@@ -213,7 +213,7 @@ INT_PTR CALLBACK ShowListMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM
ScreenToClient(hDlg, &p);
DlgDat->ListUCRect.right = p.x;
DlgDat->ListUCRect.bottom = p.y;
- SetWindowLong(hDlg, GWLP_USERDATA, (LONG)DlgDat);
+ SetWindowLongPtr(hDlg, GWLP_USERDATA, (LONG)DlgDat);
//set listview styles
ListView_SetExtendedListViewStyleEx(hList,
diff --git a/plugins/RecentContacts/options.cpp b/plugins/RecentContacts/options.cpp
index 786bd12206..c7922b2609 100644
--- a/plugins/RecentContacts/options.cpp
+++ b/plugins/RecentContacts/options.cpp
@@ -19,7 +19,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
mir_snprintf(str, SIZEOF(str), "%s", LastUCOpt.DateTimeFormat.c_str());
SetDlgItemTextA(hwndDlg, IDC_DATETIME, str);
- SetWindowLong(hwndDlg,GWLP_USERDATA,lParam);
+ SetWindowLongPtr(hwndDlg,GWLP_USERDATA,lParam);
return TRUE;
case WM_COMMAND: