summaryrefslogtreecommitdiff
path: root/source4/lib/registry/regf.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-07 18:11:42 +1100
committerAndrew Tridgell <tridge@samba.org>2010-02-07 18:41:59 +1100
commit5ab6a8d077712c789bbd245f5f7cac7fc71cba81 (patch)
treee4709f3b2a0fef25279fc812fe2df906b3f62215 /source4/lib/registry/regf.c
parent70534adee10fc6f5bba2d9304668dc6508e5de5a (diff)
downloadsamba-5ab6a8d077712c789bbd245f5f7cac7fc71cba81.tar.gz
samba-5ab6a8d077712c789bbd245f5f7cac7fc71cba81.tar.bz2
samba-5ab6a8d077712c789bbd245f5f7cac7fc71cba81.zip
s4-registry: fixed byte order assumptions
the registry tests were broken on big-endian systems
Diffstat (limited to 'source4/lib/registry/regf.c')
-rw-r--r--source4/lib/registry/regf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c
index a96c7db0ee..b5b676f9d8 100644
--- a/source4/lib/registry/regf.c
+++ b/source4/lib/registry/regf.c
@@ -1816,7 +1816,7 @@ static WERROR regf_set_value(struct hive_key *key, const char *name,
vk.data_type = type;
if (type == REG_DWORD) {
vk.data_length |= 0x80000000;
- vk.data_offset = *(uint32_t *)data.data;
+ vk.data_offset = IVAL(data.data, 0);
} else {
/* Store data somewhere */
vk.data_offset = hbin_store(regf, data);