[PATCH 1/3] crypt32/tests: Add tests for CryptStringToBinaryW()

Nikolay Sivov nsivov at codeweavers.com
Sun Mar 15 08:31:49 CDT 2020



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.



More information about the wine-devel mailing list