1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

s4-registry: fixed byte order assumptions

the registry tests were broken on big-endian systems
This commit is contained in:
Andrew Tridgell
2010-02-07 18:11:42 +11:00
parent 70534adee1
commit 5ab6a8d077
4 changed files with 9 additions and 7 deletions

View File

@ -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);