summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/gtk/tools/gepdump.c3
-rw-r--r--source4/gtk/tools/gregedit.c4
-rw-r--r--source4/gtk/tools/gwcrontab.c3
-rw-r--r--source4/gtk/tools/gwsam.c2
4 files changed, 8 insertions, 4 deletions
diff --git a/source4/gtk/tools/gepdump.c b/source4/gtk/tools/gepdump.c
index 00b13def54..5f7f346838 100644
--- a/source4/gtk/tools/gepdump.c
+++ b/source4/gtk/tools/gepdump.c
@@ -459,10 +459,11 @@ static GtkWidget* create_mainwindow (void)
int main(int argc, char **argv)
{
- dcerpc_init();
lp_load();
setup_logging(argv[0], DEBUG_STDERR);
+ dcerpc_init();
+
gtk_init(&argc, &argv);
mainwin = create_mainwindow();
gtk_widget_show_all(mainwin);
diff --git a/source4/gtk/tools/gregedit.c b/source4/gtk/tools/gregedit.c
index 3326fff6e8..e0717187d9 100644
--- a/source4/gtk/tools/gregedit.c
+++ b/source4/gtk/tools/gregedit.c
@@ -968,12 +968,12 @@ int main(int argc, char *argv[])
int ret;
lp_load();
-
- registry_init();
setup_logging(argv[0], DEBUG_STDERR);
mem_ctx = talloc_init("gregedit");
+ registry_init();
+
gtk_init(&argc, &argv);
mainwin = create_mainwindow();
gtk_widget_show_all(mainwin);
diff --git a/source4/gtk/tools/gwcrontab.c b/source4/gtk/tools/gwcrontab.c
index a00b57dd0d..821787e5e3 100644
--- a/source4/gtk/tools/gwcrontab.c
+++ b/source4/gtk/tools/gwcrontab.c
@@ -491,10 +491,11 @@ static GtkWidget*create_new_job_dialog (void)
int main(int argc, char **argv)
{
- dcerpc_init();
lp_load();
setup_logging(argv[0], DEBUG_STDERR);
+ dcerpc_init();
+
gtk_init(&argc, &argv);
mainwin = create_mainwindow();
gtk_widget_show_all(mainwin);
diff --git a/source4/gtk/tools/gwsam.c b/source4/gtk/tools/gwsam.c
index 5f274e622b..d788dfd459 100644
--- a/source4/gtk/tools/gwsam.c
+++ b/source4/gtk/tools/gwsam.c
@@ -403,6 +403,8 @@ int main(int argc, char **argv)
lp_load();
setup_logging(argv[0], DEBUG_STDERR);
+ dcerpc_init();
+
gtk_init(&argc, &argv);
mainwin = create_mainwindow();
connect_sam();