mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-12 16:47:42 -05:00
Stop winutils.c from depending on the global HWND.
The GUI version of pgp_fingerprints() is now a differently named function that takes a parent HWND as a parameter, and so does my help-enabled wrapper around MessageBox.
This commit is contained in:
@ -872,7 +872,7 @@ int win_seat_verify_ssh_host_key(
|
||||
char *text = dupprintf(wrongmsg, appname, keytype, fingerprint,
|
||||
appname);
|
||||
char *caption = dupprintf(mbtitle, appname);
|
||||
mbret = message_box(text, caption,
|
||||
mbret = message_box(hwnd, text, caption,
|
||||
MB_ICONWARNING | MB_YESNOCANCEL | MB_DEFBUTTON3,
|
||||
HELPCTXID(errors_hostkey_changed));
|
||||
assert(mbret==IDYES || mbret==IDNO || mbret==IDCANCEL);
|
||||
@ -887,7 +887,7 @@ int win_seat_verify_ssh_host_key(
|
||||
int mbret;
|
||||
char *text = dupprintf(absentmsg, keytype, fingerprint, appname);
|
||||
char *caption = dupprintf(mbtitle, appname);
|
||||
mbret = message_box(text, caption,
|
||||
mbret = message_box(hwnd, text, caption,
|
||||
MB_ICONWARNING | MB_YESNOCANCEL | MB_DEFBUTTON3,
|
||||
HELPCTXID(errors_hostkey_absent));
|
||||
assert(mbret==IDYES || mbret==IDNO || mbret==IDCANCEL);
|
||||
|
Reference in New Issue
Block a user