X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/ca896ed1a85f7a61c68558cfa1929030288bd71c..76347f46fb70138ad34af07b2ab00625600931f1:/windows/window.c diff --git a/windows/window.c b/windows/window.c index 1f4220e4..80467745 100644 --- 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?", - str, MB_ICONWARNING | MB_OKCANCEL) == IDOK) + str, MB_ICONWARNING | MB_OKCANCEL | MB_DEFBUTTON2) + == IDOK) DestroyWindow(hwnd); sfree(str); }