summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/spoolss.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index aad42a6e1a..e03ebc588c 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -3341,14 +3341,7 @@ static bool test_SetPrinterDataEx_matrix(struct torture_context *tctx,
if (!test_GetPrinterDataEx(tctx, p, handle, keys[i], value_name, &type, &data_out, &needed)) {
return false;
}
-
- /* special case, a REG_BINARY set with 0 size returns a 0 sized
- * REG_NONE - gd */
- if ((types[t] == REG_BINARY) && (offered == 0)) {
- torture_assert_int_equal(tctx, REG_NONE, type, "type mismatch");
- } else {
- torture_assert_int_equal(tctx, types[t], type, "type mismatch");
- }
+ torture_assert_int_equal(tctx, types[t], type, "type mismatch");
torture_assert_int_equal(tctx, needed, offered, "size mismatch");
torture_assert_mem_equal(tctx, data_out, data.data, offered, "buffer mismatch");