summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-07-23 05:07:40 +0000
committerGerald Carter <jerry@samba.org>2002-07-23 05:07:40 +0000
commit5b513407c21e6e77d495fafa49a7a5d380087667 (patch)
tree6d4368d6eaf55ed3e7c7af863a3e9e7e3ec5f709 /source3
parente8177d1104c8f7a1035f5c9c340ae5c9b594a729 (diff)
downloadsamba-5b513407c21e6e77d495fafa49a7a5d380087667.tar.gz
samba-5b513407c21e6e77d495fafa49a7a5d380087667.tar.bz2
samba-5b513407c21e6e77d495fafa49a7a5d380087667.zip
* fix to display correct form information in REG_BINARY information
This should be 8 x uint32 (not 7. I'm guessing the 2nd to the last uint32 is the index number for the form? Not that big a deal I don't think. (This used to be commit 88f0e68bc631f1a0032056bc6c7b9213e8a15be8)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_printing.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/source3/registry/reg_printing.c b/source3/registry/reg_printing.c
index 993d793c1e..f4c1feb281 100644
--- a/source3/registry/reg_printing.c
+++ b/source3/registry/reg_printing.c
@@ -121,7 +121,8 @@ static int print_subpath_forms( char *key, REGSUBKEY_CTR *subkeys )
static int print_subpath_values_forms( char *key, REGVAL_CTR *val )
{
int num_values = 0;
- uint32 data[7];
+ uint32 data[8];
+ int form_index = 1;
DEBUG(10,("print_values_forms: key=>[%s]\n", key ? key : "NULL" ));
@@ -145,13 +146,14 @@ static int print_subpath_values_forms( char *key, REGVAL_CTR *val )
{
form = &forms_list[i];
- data[0] = form->flag;
- data[1] = form->width;
- data[2] = form->length;
- data[3] = form->left;
- data[4] = form->top;
- data[5] = form->right;
- data[6] = form->bottom;
+ data[0] = form->width;
+ data[1] = form->length;
+ data[2] = form->left;
+ data[3] = form->top;
+ data[4] = form->right;
+ data[5] = form->bottom;
+ data[6] = form_index++;
+ data[7] = form->flag;
regval_ctr_addvalue( val, form->name, REG_BINARY, (char*)data, sizeof(data) );
@@ -172,16 +174,16 @@ static int print_subpath_values_forms( char *key, REGVAL_CTR *val )
{
form = &forms_list[i];
- data[0] = form->flag;
- data[1] = form->width;
- data[2] = form->length;
- data[3] = form->left;
- data[4] = form->top;
- data[5] = form->right;
- data[6] = form->bottom;
-
+ data[0] = form->width;
+ data[1] = form->length;
+ data[2] = form->left;
+ data[3] = form->top;
+ data[4] = form->right;
+ data[5] = form->bottom;
+ data[6] = form_index++;
+ data[7] = form->flag;
+
regval_ctr_addvalue( val, form->name, REG_BINARY, (char*)data, sizeof(data) );
-
}
SAFE_FREE( forms_list );