case CRYPT_STRING_HEXASCII:
case CRYPT_STRING_HEXADDR:
case CRYPT_STRING_HEXASCIIADDR:
diff --git a/dlls/crypt32/tests/base64.c b/dlls/crypt32/tests/base64.c
index 8af0c5bae0..b789a0a010 100644
--- a/dlls/crypt32/tests/base64.c
+++ b/dlls/crypt32/tests/base64.c
@@ -813,8 +813,8 @@ static void testStringToBinaryW(void)
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 0, CRYPT_STRING_HEX, NULL, &data_len, &skip_, &flags);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
- todo_wine ok(data_len == 0, "Got %u, expected 0\n", data_len);
+ ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
+ ok(data_len == 0, "Got %u, expected 0\n", data_len);
heap_free(input);
/* length is uneven -> 13 */
@@ -823,8 +823,8 @@ static void testStringToBinaryW(void)
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 3, CRYPT_STRING_HEX, NULL, &data_len, &skip_, &flags);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
- todo_wine ok(data_len == 0, "Got %u, expected 0\n", data_len);
+ ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
+ ok(data_len == 0, "Got %u, expected 0\n", data_len);
heap_free(input);
/* invalid 0x prefix -> 13 */
@@ -833,8 +833,8 @@ static void testStringToBinaryW(void)
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 0, CRYPT_STRING_HEX, NULL, &data_len, &skip_, &flags);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
- todo_wine ok(data_len == 0, "Got %u, expected 0\n", data_len);
+ ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
+ ok(data_len == 0, "Got %u, expected 0\n", data_len);
heap_free(input);
/* invalid characters -> 13 */
@@ -843,8 +843,8 @@ static void testStringToBinaryW(void)
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 0, CRYPT_STRING_HEX, NULL, &data_len, NULL, NULL);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
- todo_wine ok(data_len == 0, "Got %u, expected 0\n", data_len);
+ ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
+ ok(data_len == 0, "Got %u, expected 0\n", data_len);
heap_free(input);
/* insufficient buffer -> 234 */
@@ -858,9 +858,9 @@ static void testStringToBinaryW(void)
input = strdupAtoW("213c73796d6c696e6b3efffe");
ret = CryptStringToBinaryW(input, 24, CRYPT_STRING_HEX, out, &data_len, &skip_, &flags);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_MORE_DATA, "Got %d, expected 234\n", GetLastError());
+ ok(GetLastError() == ERROR_MORE_DATA, "Got %d, expected 234\n", GetLastError());
ok(data_len == 4, "Got %u, expected 4\n", data_len);
- todo_wine ok(!memcmp(out, expected, 4), "Invalid output from CryptStringToBinaryW()!\n");
+ ok(!memcmp(out, expected, 4), "Invalid output from CryptStringToBinaryW()!\n");
heap_free(input);
/* valid data */
@@ -868,9 +868,9 @@ static void testStringToBinaryW(void)
input = strdupAtoW("213c73796d6c696e6b3efffe");
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 24, CRYPT_STRING_HEX, NULL, &data_len, &skip_, &flags);
- todo_wine ok(ret, "Got %u, expected one\n", ret);
- todo_wine ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
- todo_wine ok(data_len == 12, "Got %u, expected 12\n", data_len);
+ ok(ret, "Got %u, expected one\n", ret);
+ ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
+ ok(data_len == 12, "Got %u, expected 12\n", data_len);
heap_free(input);
/* valid data with white spaces */
@@ -879,9 +879,9 @@ static void testStringToBinaryW(void)
data_len = 0xdeadbeef;
SetLastError(0xdeadbeef);
ret = CryptStringToBinaryW(input, 25, CRYPT_STRING_HEX, NULL, &data_len, &skip_, &flags);
- todo_wine ok(ret, "Got %u, expected one\n", ret);
- todo_wine ok(GetLastError() == 0xdeadbeef, "Got %d, expected 0xdeadbeef\n", GetLastError());
- todo_wine ok(data_len == 7, "Got %u, expected 7\n", data_len);
+ ok(ret, "Got %u, expected one\n", ret);
+ ok(GetLastError() == 0xdeadbeef, "Got %d, expected 0xdeadbeef\n", GetLastError());
+ ok(data_len == 7, "Got %u, expected 7\n", data_len);
heap_free(input);
/* valid data with white spaces but spacing breaks the valid data into invalid chunks */
@@ -890,8 +890,8 @@ static void testStringToBinaryW(void)
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 0, CRYPT_STRING_HEX, NULL, &data_len, &skip_, &flags);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
- todo_wine ok(data_len == 0, "Got %u, expected 0\n", data_len);
+ ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
+ ok(data_len == 0, "Got %u, expected 0\n", data_len);
heap_free(input);
/* if "input" contains both valid and invalid data and "out" is valid, "out" shall contain all valid bytes
@@ -902,7 +902,7 @@ static void testStringToBinaryW(void)
input = strdupAtoW("21 3 c ff");
ret = CryptStringToBinaryW(input, 0, CRYPT_STRING_HEX, out, &data_len, &skip_, &flags);
ok(!ret, "Got %u, expected zero\n", ret);
- todo_wine ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
+ ok(GetLastError() == ERROR_INVALID_DATA, "Got %d, expected 13\n", GetLastError());
ok(data_len == 4, "Got %u, expected 4\n", data_len);
heap_free(input);
@@ -915,10 +915,10 @@ static void testStringToBinaryW(void)
input = strdupAtoW("213c73796d6c696e6b3efffe");
data_len = 256;
ret = CryptStringToBinaryW(input, 24, CRYPT_STRING_HEX, out, &data_len, &skip_, &flags);
- todo_wine ok(ret, "Got %u, expected one\n", ret);
- todo_wine ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
- todo_wine ok(data_len == 12, "Got %u, expected 12\n", data_len);
- todo_wine ok(!memcmp(out, expected, 12), "Invalid output from CryptStringToBinaryW()!\n");
+ ok(ret, "Got %u, expected one\n", ret);
+ ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
+ ok(data_len == 12, "Got %u, expected 12\n", data_len);
+ ok(!memcmp(out, expected, 12), "Invalid output from CryptStringToBinaryW()!\n");
heap_free(input);
/* invalid data but length small enough that it's never detected */
@@ -926,9 +926,9 @@ static void testStringToBinaryW(void)
input = strdupAtoW("abcdefhhh");
data_len = 0xdeadbeef;
ret = CryptStringToBinaryW(input, 4, CRYPT_STRING_HEX, NULL, &data_len, NULL, NULL);
- todo_wine ok(ret, "Got %u, expected one\n", ret);
- todo_wine ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
- todo_wine ok(data_len == 2, "Got %u, expected 2\n", data_len);
+ ok(ret, "Got %u, expected one\n", ret);
+ ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
+ ok(data_len == 2, "Got %u, expected 2\n", data_len);
heap_free(input);
/* invalid data but length small enough that it's never detected, with whitespaces */
@@ -937,9 +937,9 @@ static void testStringToBinaryW(void)
input = strdupAtoW("\t\t21 fe");
data_len = 256;
ret = CryptStringToBinaryW(input, 5, CRYPT_STRING_HEX, out, &data_len, &skip_, &flags);
- todo_wine ok(ret, "Got %u, expected one\n", ret);
- todo_wine ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
- todo_wine ok(data_len == 1, "Got %u, expected 1\n", data_len);
+ ok(ret, "Got %u, expected one\n", ret);
+ ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
+ ok(data_len == 1, "Got %u, expected 1\n", data_len);
heap_free(input);
/* valid data but parse only the first 6 bytes (12 chars) */
@@ -950,10 +950,10 @@ static void testStringToBinaryW(void)
input = strdupAtoW("213c73796d6c696e6b3efffe");
data_len = 256;
ret = CryptStringToBinaryW(input, 12, CRYPT_STRING_HEX, out, &data_len, &skip_, &flags);
- todo_wine ok(ret, "Got %u, expected one\n", ret);
- todo_wine ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
- todo_wine ok(data_len == 6, "Got %u, expected 6\n", data_len);
- todo_wine ok(!memcmp(out, expected, 6), "Invalid output from CryptStringToBinaryW()!\n");
+ ok(ret, "Got %u, expected one\n", ret);
+ ok(GetLastError() == 0xdeadbeef, "Got %x, expected 0xdeadbeef\n", GetLastError());
+ ok(data_len == 6, "Got %u, expected 6\n", data_len);
+ ok(!memcmp(out, expected, 6), "Invalid output from CryptStringToBinaryW()!\n");
heap_free(input);
}