[crypt32/tests 2/2] Vista uses a different error code (RESEND)

Dmitry Timoshkov dmitry at codeweavers.com
Wed Jun 13 22:44:59 CDT 2007


"Paul Vriens" <paul.vriens.wine at gmail.com> wrote:

>     ret = CryptSIPRetrieveSubjectGuid(tempfileW, NULL, &subject);
>     ok ( !ret, "Expected CryptSIPRetrieveSubjectGuid to fail\n");
>     ok ( GetLastError() == ERROR_FILE_INVALID ||
> +         GetLastError() == ERROR_INVALID_PARAMETER /* Vista */ ||
>          GetLastError() == S_OK /* Win98 */,
> -        "Expected ERROR_FILE_INVALID or S_OK, got 0x%08x\n", GetLastError());
> +        "Expected ERROR_FILE_INVALID, ERROR_INVALID_PARAMETER or S_OK, got 0x%08x\n", GetLastError());

S_OK is an OLE error, ERROR_SUCCESS is correct name in this case.

It's not your fault at all, but since you are fixing this code it would be
nice to fix it as well.

-- 
Dmitry.



More information about the wine-devel mailing list