mirror of https://github.com/OpenVPN/openvpn-gui
use SetWindowLongPtr() for x64 compatibility
parent
4683e8f045
commit
651238c1ef
|
@ -350,7 +350,7 @@ LanguageSettingsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
if (langId != 0)
|
if (langId != 0)
|
||||||
SetGUILanguage(langId);
|
SetGUILanguage(langId);
|
||||||
|
|
||||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
|
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, PSNRET_NOERROR);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
4
proxy.c
4
proxy.c
|
@ -122,13 +122,13 @@ ProxySettingsDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, UNUSED LPARAM lPa
|
||||||
psn = (LPPSHNOTIFY) lParam;
|
psn = (LPPSHNOTIFY) lParam;
|
||||||
if (psn->hdr.code == (UINT) PSN_KILLACTIVE)
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if (psn->hdr.code == (UINT) PSN_APPLY)
|
else if (psn->hdr.code == (UINT) PSN_APPLY)
|
||||||
{
|
{
|
||||||
SaveProxySettings(hwndDlg);
|
SaveProxySettings(hwndDlg);
|
||||||
SetWindowLong(hwndDlg, DWL_MSGRESULT, PSNRET_NOERROR);
|
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, PSNRET_NOERROR);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue