summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--librpc/idl/preg.idl2
-rw-r--r--source3/libgpo/gpext/registry.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/librpc/idl/preg.idl b/librpc/idl/preg.idl
index 6738f614b4..6a98a823cd 100644
--- a/librpc/idl/preg.idl
+++ b/librpc/idl/preg.idl
@@ -17,7 +17,7 @@ import "misc.idl";
]
interface preg
{
- typedef [public] struct {
+ typedef [public,flag(NDR_PAHEX)] struct {
[charset(DOS),value("["),noprint] uint8 _opening_bracket[2];
nstring keyname;
[charset(DOS),value(";"),noprint] uint8 _sep1[2];
diff --git a/source3/libgpo/gpext/registry.c b/source3/libgpo/gpext/registry.c
index ad511a527d..1700eabd46 100644
--- a/source3/libgpo/gpext/registry.c
+++ b/source3/libgpo/gpext/registry.c
@@ -175,6 +175,10 @@ static NTSTATUS reg_parse_registry(TALLOC_CTX *mem_ctx,
goto out;
}
+ if (flags & GPO_INFO_FLAG_VERBOSE) {
+ NDR_PRINT_DEBUG(preg_file, &r);
+ }
+
if (!strequal(r.header.signature, "PReg")) {
status = NT_STATUS_INVALID_PARAMETER;
goto out;