r24609: Fix the fix of r23668 for win2k giving one zero byte
authorMichael Adam <obnox@samba.org>
Tue, 21 Aug 2007 21:55:51 +0000 (21:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:10 +0000 (12:30 -0500)
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

index dcf45f3c613443f9a183a8738cfa875b85924dfd..ee9f22884bc4436bfe92f707aaa3d9f80b472f96 100644 (file)
@@ -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) {