diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_cachehook.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index d59dc4cbd5..eb2884fc26 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/registry/reg_cachehook.c @@ -38,9 +38,15 @@ static char *keyname_to_path(TALLOC_CTX *mem_ctx, const char *keyname) path = talloc_asprintf(mem_ctx, "\\%s", keyname); if (path == NULL) { + DEBUG(0, ("talloc_asprintf failed!\n")); return NULL; } + path = talloc_string_sub(mem_ctx, path, "\\", "/"); + if (path == NULL) { + DEBUG(0, ("talloc_string_sub_failed!\n")); + } + return path; } |