mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
DLGPROC callbacks should return INT_PTR.
The Windows headers define the return type of DLGPROC as INT_PTR which on 64bit Windows has a different size than int.
This commit is contained in:
parent
a39904388f
commit
1ce39113f5
@ -141,7 +141,7 @@ struct PassphraseProcStruct {
|
||||
/*
|
||||
* Dialog-box function for the passphrase box.
|
||||
*/
|
||||
static int CALLBACK PassphraseProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK PassphraseProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
static char **passphrase = NULL;
|
||||
@ -233,7 +233,7 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
|
||||
/*
|
||||
* Dialog-box function for the Licence box.
|
||||
*/
|
||||
static int CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (msg) {
|
||||
@ -272,7 +272,7 @@ static int CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
/*
|
||||
* Dialog-box function for the About box.
|
||||
*/
|
||||
static int CALLBACK AboutProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK AboutProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (msg) {
|
||||
@ -749,7 +749,7 @@ void load_key_file(HWND hwnd, struct MainDlgState *state,
|
||||
/*
|
||||
* Dialog-box function for the main PuTTYgen dialog box.
|
||||
*/
|
||||
static int CALLBACK MainDlgProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
static const char generating_msg[] =
|
||||
|
@ -120,7 +120,7 @@ struct PassphraseProcStruct {
|
||||
/*
|
||||
* Dialog-box function for the Licence box.
|
||||
*/
|
||||
static int CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (msg) {
|
||||
@ -144,7 +144,7 @@ static int CALLBACK LicenceProc(HWND hwnd, UINT msg,
|
||||
/*
|
||||
* Dialog-box function for the About box.
|
||||
*/
|
||||
static int CALLBACK AboutProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK AboutProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (msg) {
|
||||
@ -179,7 +179,7 @@ static HWND passphrase_box;
|
||||
/*
|
||||
* Dialog-box function for the passphrase box.
|
||||
*/
|
||||
static int CALLBACK PassphraseProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK PassphraseProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
static char **passphrase = NULL;
|
||||
@ -461,7 +461,7 @@ static void prompt_add_keyfile(void)
|
||||
/*
|
||||
* Dialog-box function for the key list box.
|
||||
*/
|
||||
static int CALLBACK KeyListProc(HWND hwnd, UINT msg,
|
||||
static INT_PTR CALLBACK KeyListProc(HWND hwnd, UINT msg,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
struct RSAKey *rkey;
|
||||
|
Loading…
Reference in New Issue
Block a user