summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-20 03:25:54 +0100
committerMichael Adam <obnox@samba.org>2008-01-20 03:47:37 +0100
commitc4b65647ca551eeb87ec31579eda9ebf79fdceed (patch)
treebb89f6954f55d03e5673d11f5e8d9bf5d39617e6 /source3
parent2925d8357319c9872d570fe045c883a25891b59e (diff)
downloadsamba-c4b65647ca551eeb87ec31579eda9ebf79fdceed.tar.gz
samba-c4b65647ca551eeb87ec31579eda9ebf79fdceed.tar.bz2
samba-c4b65647ca551eeb87ec31579eda9ebf79fdceed.zip
Some reformatting of current_version_fetch_values().
Michael (This used to be commit d2e3814db8a4a5f0fc097e9f56753888470ef213)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_current_version.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/source3/registry/reg_backend_current_version.c b/source3/registry/reg_backend_current_version.c
index 51b081721c..a9d281c522 100644
--- a/source3/registry/reg_backend_current_version.c
+++ b/source3/registry/reg_backend_current_version.c
@@ -55,17 +55,18 @@ static int current_version_fetch_values(const char *key, REGVAL_CTR *values)
return 0;
}
- value_length = push_ucs2( value, value, sysroot_string, sizeof(value),
- STR_TERMINATE|STR_NOALIGN );
- regval_ctr_addvalue( values, "SystemRoot", REG_SZ, value, value_length );
-
- fstr_sprintf( sysversion, "%d.%d", lp_major_announce_version(), lp_minor_announce_version() );
- value_length = push_ucs2( value, value, sysversion, sizeof(value),
- STR_TERMINATE|STR_NOALIGN );
- regval_ctr_addvalue( values, "CurrentVersion", REG_SZ, value, value_length );
-
-
- return regval_ctr_numvals( values );
+ value_length = push_ucs2(value, value, sysroot_string, sizeof(value),
+ STR_TERMINATE|STR_NOALIGN );
+ regval_ctr_addvalue(values, "SystemRoot", REG_SZ, value, value_length);
+
+ fstr_sprintf(sysversion, "%d.%d", lp_major_announce_version(),
+ lp_minor_announce_version());
+ value_length = push_ucs2(value, value, sysversion, sizeof(value),
+ STR_TERMINATE|STR_NOALIGN);
+ regval_ctr_addvalue(values, "CurrentVersion", REG_SZ, value,
+ value_length);
+
+ return regval_ctr_numvals(values);
}
static int current_version_fetch_subkeys(const char *key,