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

This commit is contained in:
Joris Huizer 2011-02-04 16:36:49 +01:00 committed by Alexandre Julliard
parent e78bd6dfa1
commit 922d1d88e8

View file

@ -202,7 +202,8 @@ static void test_get_certificate(char *cert_data, int index)
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");
HeapFree(GetProcessHeap(), 0, cert);