1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 05:52:48 -05:00

Add a couple of other sensible button defaults in MessageBox()s.

[originally from svn r5305]
This commit is contained in:
Jacob Nevins
2005-02-15 19:22:47 +00:00
parent e8a4e7e601
commit 0fb46d3a0a
2 changed files with 4 additions and 3 deletions

View File

@ -1862,7 +1862,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
if (!cfg.warn_on_close || session_closed ||
MessageBox(hwnd,
"Are you sure you want to close this session?",
str, MB_ICONWARNING | MB_OKCANCEL) == IDOK)
str, MB_ICONWARNING | MB_OKCANCEL | MB_DEFBUTTON2)
== IDOK)
DestroyWindow(hwnd);
sfree(str);
}