From 1523103164675b2ffe938f9d8014574c9381f4b2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 21 Aug 2007 21:55:51 +0000 Subject: r24609: Fix the fix of r23668 for win2k giving one zero byte instead of a 2-byte zero character. I can't recall what rode me when I put that "2" there. But now I think I have got it right... :-) Michael (This used to be commit fa010bef11b78ac3bbf0091870ce8cd5a53334af) --- source3/lib/util_reg_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') diff --git a/source3/lib/util_reg_api.c b/source3/lib/util_reg_api.c index dcf45f3c61..ee9f22884b 100644 --- a/source3/lib/util_reg_api.c +++ b/source3/lib/util_reg_api.c @@ -61,7 +61,7 @@ WERROR registry_pull_value(TALLOC_CTX *mem_ctx, err = WERR_NOMEM; goto error; } - tmp[0] = 2; + tmp[0] = 0; tmp[1] = 0; } else if ((length % 2) != 0) { -- cgit