X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b3f3c0515b68a328e1b572296aa9a95485e04dc5..84d264cd9ce2094306a57bc3b2f184de8807393a:/windows/window.c diff --git a/windows/window.c b/windows/window.c index 9d213c7a..b3d350b4 100644 --- a/windows/window.c +++ b/windows/window.c @@ -1860,7 +1860,7 @@ 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 | MB_DEFBUTTON2) + str, MB_ICONWARNING | MB_OKCANCEL | MB_DEFBUTTON1) == IDOK) DestroyWindow(hwnd); sfree(str);