From d658de65d32e6746ac51aeb4da7aa74b3da40c2b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 27 Dec 2005 16:22:35 +0000 Subject: r12512: Use GUID structs in API functions everywhere rather then converting back and forth between GUID structs and strings in several places. (This used to be commit 3564e2f967ef72d6301b4f7e9a311cebcded4d75) --- source4/utils/ndrdump.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source4/utils/ndrdump.c') diff --git a/source4/utils/ndrdump.c b/source4/utils/ndrdump.c index 611283ee69..abc6d95fb4 100644 --- a/source4/utils/ndrdump.c +++ b/source4/utils/ndrdump.c @@ -148,8 +148,13 @@ static char *stdin_load(TALLOC_CTX *mem_ctx, size_t *size) p = idl_iface_by_name(pipe_name); if (!p) { + struct GUID uuid; - p = idl_iface_by_uuid(pipe_name); + status = GUID_from_string(pipe_name, &uuid); + + if (NT_STATUS_IS_OK(status)) { + p = idl_iface_by_uuid(&uuid); + } if (!p) { printf("Unknown pipe or UUID '%s'\n", pipe_name); -- cgit