projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a couple of other sensible button defaults in MessageBox()s.
[u/mdw/putty]
/
windows
/
window.c
diff --git
a/windows/window.c
b/windows/window.c
index
1f4220e
..
8046774
100644
(file)
--- a/
windows/window.c
+++ b/
windows/window.c
@@
-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?",
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);
}
DestroyWindow(hwnd);
sfree(str);
}