From 651238c1effd664c637812523f790cf19c07b9a6 Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Tue, 26 Jul 2011 09:13:07 +0200 Subject: [PATCH] use SetWindowLongPtr() for x64 compatibility --- localization.c | 2 +- proxy.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/localization.c b/localization.c index 7a697f0..b089d13 100644 --- a/localization.c +++ b/localization.c @@ -350,7 +350,7 @@ LanguageSettingsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) if (langId != 0) SetGUILanguage(langId); - SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR); + SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, PSNRET_NOERROR); return TRUE; } break; diff --git a/proxy.c b/proxy.c index 3987ad6..241fdd8 100644 --- a/proxy.c +++ b/proxy.c @@ -122,13 +122,13 @@ ProxySettingsDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, UNUSED LPARAM lPa psn = (LPPSHNOTIFY) lParam; if (psn->hdr.code == (UINT) PSN_KILLACTIVE) { - SetWindowLong(hwndDlg, DWL_MSGRESULT, (CheckProxySettings(hwndDlg) ? FALSE : TRUE)); + SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, (CheckProxySettings(hwndDlg) ? FALSE : TRUE)); return TRUE; } else if (psn->hdr.code == (UINT) PSN_APPLY) { SaveProxySettings(hwndDlg); - SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR); + SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, PSNRET_NOERROR); return TRUE; } break;