1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

More endian fixes in the registry

(This used to be commit b26662be196a84237543eb90d6e08809489df3a9)
This commit is contained in:
Andrew Bartlett 2008-04-17 18:40:56 +02:00
parent d0525ff0c2
commit c9a12fa55d

View File

@ -431,9 +431,9 @@ static bool test_get_value(struct torture_context *tctx, void *_data)
&data);
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_int_equal(tctx, 4, data.length, "value length ok");
torture_assert_mem_equal(tctx, data.data, value, 4,
"value content ok");
torture_assert_int_equal(tctx, sizeof(value), data.length, "value length ok");
torture_assert_mem_equal(tctx, data.data, value, sizeof(value),
"value content ok");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");
return true;
@ -501,8 +501,8 @@ static bool test_list_values(struct torture_context *tctx, void *_data)
torture_assert_werr_ok(tctx, error, "getting value");
torture_assert_str_equal(tctx, name, "bar", "value name");
torture_assert_int_equal(tctx, 4, data.length, "value length");
torture_assert_mem_equal(tctx, data.data, &value, sizeof(value),
torture_assert_int_equal(tctx, sizeof(value), data.length, "value length");
torture_assert_mem_equal(tctx, data.data, value, sizeof(value),
"value content");
torture_assert_int_equal(tctx, REG_DWORD, type, "value type");