cryptnet: Skip failing tests no matter what the last error is, but only on Windows.

This commit is contained in:
Juan Lang 2009-01-29 16:57:45 -08:00 committed by Alexandre Julliard
parent 3b7c62f80b
commit bc2fa00789
1 changed files with 2 additions and 2 deletions

View File

@ -285,10 +285,10 @@ static void test_retrieveObjectByUrl(void)
pBlobArray = (CRYPT_BLOB_ARRAY *)0xdeadbeef;
ret = CryptRetrieveObjectByUrlA(url, NULL, 0, 0, (void **)&pBlobArray,
NULL, NULL, NULL, NULL);
if (!ret && GetLastError() == ERROR_NOT_SUPPORTED)
if (!ret)
{
/* File URL support was apparently removed in Vista/Windows 2008 */
skip("File URLs not supported\n");
win_skip("File URLs not supported\n");
return;
}
ok(ret, "CryptRetrieveObjectByUrlA failed: %d\n", GetLastError());