From 66a5cbaf8be9de66d40660cfb57df553b651d75d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 5 Jun 2008 19:04:31 +0200 Subject: netdomjoin-gui: enable NetGetJoinInformation() call after successfull joining. Now that libnetjoin reloads configuration after joining, we can rely on the NetGetJoinInformation() output and use it for displaying the new domain name and type. Guenther (This used to be commit cc1b8de2632e87002cac86838f2a77ab9771ce2c) --- source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/lib/netapi/examples') diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index 1da8169f63..418b9c8b8e 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -297,12 +297,12 @@ static void callback_do_reboot(GtkWidget *widget, } debug("got new status: %s\n", buffer); -#if 0 + SAFE_FREE(state->name_buffer_new); state->name_buffer_new = strdup(buffer); - SAFE_FREE(buffer); state->name_type_new = type; -#endif + state->name_buffer_initial = strdup(buffer); + state->name_type_initial = type; NetApiBufferFree((void *)buffer); gtk_label_set_text(GTK_LABEL(state->label_current_name_buffer), -- cgit