On 3/15/20 4:00 PM, Aaro Altonen wrote:
- /* otherwise valid parameters but invalid data_len -> 87 */
- SetLastError(0xdeadbeef);
- input = strdupAtoW("213c73796d6c696e6b3efffe");
- ret = CryptStringToBinaryW(input, 24, CRYPT_STRING_HEX, NULL, NULL, NULL, NULL);
- ok(!ret, "Got %u, expected zero\n", ret);
- ok(GetLastError() == ERROR_INVALID_PARAMETER, "Got %d, expected 87\n", GetLastError());
- heap_free(input);
Use can use L"" string here.