summaryrefslogtreecommitdiff
path: root/PackUpdater/Src/Options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PackUpdater/Src/Options.cpp')
-rw-r--r--PackUpdater/Src/Options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/PackUpdater/Src/Options.cpp b/PackUpdater/Src/Options.cpp
index 56e7def..8e133b6 100644
--- a/PackUpdater/Src/Options.cpp
+++ b/PackUpdater/Src/Options.cpp
@@ -53,7 +53,7 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
SendDlgItemMessage(hwndDlg, IDC_PERIODSPIN, UDM_SETPOS, 0, (LPARAM)Period);
Edit_LimitText(GetDlgItem(hwndDlg, IDC_PERIOD), 2);
- g_pOldProc = (WNDPROC)SetWindowLong(GetDlgItem(hwndDlg, IDC_PERIOD), GWL_WNDPROC, (LONG)MyEditProc);
+ g_pOldProc = (WNDPROC)SetWindowLongPtr(GetDlgItem(hwndDlg, IDC_PERIOD), GWLP_WNDPROC, (LONG)MyEditProc);
ComboBox_InsertString(GetDlgItem(hwndDlg, IDC_PERIODMEASURE), 0, TranslateT("hours"));
ComboBox_InsertString(GetDlgItem(hwndDlg, IDC_PERIODMEASURE), 1, TranslateT("days"));