Commit 922d1d88 authored by Joris Huizer's avatar Joris Huizer Committed by Alexandre Julliard

imagehlp/tests: Don't test function directly when reporting GetLastError().

parent e78bd6df
...@@ -202,7 +202,8 @@ static void test_get_certificate(char *cert_data, int index) ...@@ -202,7 +202,8 @@ static void test_get_certificate(char *cert_data, int index)
return; return;
} }
ok(ret = pImageGetCertificateData(hFile, index, cert, &cert_len), "Unable to retrieve certificate; err=%x\n", GetLastError()); ret = pImageGetCertificateData(hFile, index, cert, &cert_len);
ok(ret, "Unable to retrieve certificate; err=%x\n", GetLastError());
ok(memcmp(cert->bCertificate, cert_data, cert_len - sizeof(WIN_CERTIFICATE)) == 0, "Certificate retrieved did not match original\n"); ok(memcmp(cert->bCertificate, cert_data, cert_len - sizeof(WIN_CERTIFICATE)) == 0, "Certificate retrieved did not match original\n");
HeapFree(GetProcessHeap(), 0, cert); HeapFree(GetProcessHeap(), 0, cert);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment