]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - puttygen.c
Zero length passwords no longer cause an assertion failure :-)
[PuTTY_svn.git] / puttygen.c
index 8ce44b4a13b8c208c55f61be0b102d79e06e10c0..44fc98fa46bca79f50dd143655ac6837c78d9692 100644 (file)
@@ -530,8 +530,13 @@ static int CALLBACK MainDlgProc (HWND hwnd, UINT msg,
                         sfree(*state->commentptr);
                     *state->commentptr = smalloc(len+1);
                     GetWindowText(editctl, *state->commentptr, len+1);
-                }                
-            }
+                   if (state->ssh2) {
+                       setupbigedit2(hwnd, IDC_KEYDISPLAY, &state->ssh2key);
+                   } else {
+                       setupbigedit1(hwnd, IDC_KEYDISPLAY, &state->key);
+                   }
+               }
+           }
            break;
          case IDC_ABOUT:
            EnableWindow(hwnd, 0);