mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 13:02:47 -05: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user