]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
2003-03-05 Max Bowsher <maxb@ukf.net>
authorMax Bowsher <maxb1@ukf.net>
Fri, 7 Mar 2003 22:25:31 +0000 (22:25 +0000)
committerMax Bowsher <maxb1@ukf.net>
Fri, 7 Mar 2003 22:25:31 +0000 (22:25 +0000)
* netio.cc (save_dialog): Allocate an empty string if the password is
null, so that an empty password is accepted elsewhere in setup.
(check_if_enable_ok): An empty password is OK.

ChangeLog
netio.cc

index e01f2d57696ad7018687f862fc98faf5d63a5d2f..f8f8c3f414203e01dd72a620c290e2f44e319733 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,17 +1,23 @@
+2003-03-05  Max Bowsher  <maxb@ukf.net>
+
+       * netio.cc (save_dialog): Allocate an empty string if the password is
+       null, so that an empty password is accepted elsewhere in setup.
+       (check_if_enable_ok): An empty password is OK.
+
 2003-03-05  Brian Keener  <bkeener@thesoftwaresource.com>
 
-        * PickView.cc (PickView::views): Add two new views for Skipped
+       * PickView.cc (PickView::views): Add two new views for Skipped
        packages and Installed Packages not requiring update.
        (PickView::set_headers () ): Ditto.
        (PickView::clear_view (void) ): Ditto.
        (PickView::views::caption () ): Add two new captions for the new
        views added for Skipped and Installed Packages.
        (PickView::scroll () ): Modify Scroll Bar property to Disable
-               instead of disappearing when there is nothing to Scroll.
+       instead of disappearing when there is nothing to Scroll.
        * PickView.h: Add two new views for Skipped packages and Installed
        packages to public class view.
        * choose.cc (list_click () ): Modify Scroll Bar property to Disable
-               instead of disappearing when there is nothing to Scroll.
+       instead of disappearing when there is nothing to Scroll.
        (listview_proc () ): Ditto.
        (set_view_mode): Add two new views for Skipped Packages and Installed
        Packages not requiring update.  Modify Scroll Bar property to Disable
index 571cc27d2599017bc95bcd678f55dddd1d89b768..0fe6ddf4b8a770bd018e2c2e81f020df70c7ef21 100644 (file)
--- a/netio.cc
+++ b/netio.cc
@@ -170,7 +170,7 @@ static void
 check_if_enable_ok (HWND h)
 {
   int e = 0;
-  if (*user && *passwd)
+  if (*user)
     e = 1;
   EnableWindow (GetDlgItem (h, IDOK), e);
 }
@@ -190,6 +190,10 @@ save_dialog (HWND h)
 {
   *user = eget (h, IDC_NET_USER, *user);
   *passwd = eget (h, IDC_NET_PASSWD, *passwd);
+  if (! *passwd) {
+    *passwd = new char[1];
+    passwd[0] = '\0';
+  }
 }
 
 static BOOL
This page took 0.039612 seconds and 5 git commands to generate.