diff options
author | Heiko Hund <heikoh@users.sf.net> | 2011-07-26 09:13:07 +0200 |
---|---|---|
committer | Heiko Hund <heikoh@users.sf.net> | 2011-07-26 09:13:07 +0200 |
commit | 651238c1effd664c637812523f790cf19c07b9a6 (patch) | |
tree | 3b430373ecc6cb507ea20b28abde0b3330ffdfb9 | |
parent | fix popup menu creation (diff) | |
download | openvpn-gui-651238c1effd664c637812523f790cf19c07b9a6.tar.gz |
use SetWindowLongPtr() for x64 compatibility
-rw-r--r-- | localization.c | 2 | ||||
-rw-r--r-- | 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; @@ -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; |