Peter Schellenbach's patch: re-implement the PuTTY cryptographic
[u/mdw/putty] / window.c
index 026ef12..8a87584 100644 (file)
--- a/window.c
+++ b/window.c
@@ -474,8 +474,12 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) {
        DeleteObject(pal);
     WSACleanup();
 
-    if (cfg.protocol == PROT_SSH)
+    if (cfg.protocol == PROT_SSH) {
        random_save_seed();
+#ifdef MSCRYPTOAPI
+       crypto_wrapup();
+#endif
+    }
 
     return msg.wParam;
 }
@@ -701,7 +705,7 @@ font_messup:
     }
 
 #ifdef CHECKOEMFONT
-    /* With the facist font painting it doesn't matter if the linedraw font
+    /* With the fascist font painting it doesn't matter if the linedraw font
      * isn't exactly the right size anymore so we don't have to check this.
      */
     if (cfg.vtmode == VT_OEMANSI && fsize[FONT_OEM] != fsize[FONT_NORMAL] ) {