summary'>refslog'>tree'>commit'>diffstats
diff options
context:
space:
mode:
authorHeiko Hund <heikoh@users.sf.net>2011-07-26 09:13:07 +0200
committerHeiko Hund <heikoh@users.sf.net>2011-07-26 09:13:07 +0200
commit651238c1effd664c637812523f790cf19c07b9a6 ( (patch)
tree'>3b430373ecc6cb507ea20b28abde0b3330ffdfb9
parentfix popup menu creation (diff)
downloadopenvpn-gui-651238c1effd664c637812523f790cf19c07b9a6.tar.gz
use SetWindowLongPtr() for x64 compatibility
--rw-r--r--r--localization.c22
-rw-r--r--proxy.c4
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;