r162: Minor bugfixes:
[kai/samba.git] / source4 / lib / registry / tools / gregedit.c
index b62fd7ec047c8956a5719632c1f93e089438d919..2d145e699a50aeed9f82feaf71ffd1ae2da17d50 100644 (file)
@@ -242,7 +242,6 @@ GtkWidget* create_rpcwin (void)
   return rpcwin;
 }
 
-
 static void on_open_nt4_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
        gint result = gtk_dialog_run(GTK_DIALOG(create_openfilewin()));
@@ -254,7 +253,7 @@ static void on_open_nt4_activate (GtkMenuItem *menuitem, gpointer user_data)
                error = reg_open("nt4", filename, NULL, &registry);
                if(!W_ERROR_IS_OK(error)) {
                        gtk_show_werror(error);
-                       return;
+                       break;
                }
                registry_load_root();
                break;
@@ -291,7 +290,7 @@ on_open_remote_activate                (GtkMenuItem     *menuitem,
                error = reg_open("rpc", location, credentials, &registry);
                if(!W_ERROR_IS_OK(error)) {
                        gtk_show_werror(error);
-                       return;
+                       break;
                }
                free(location); free(credentials);
                registry_load_root();