From 922d1d88e85cd64960ae44998c280ce738c13b28 Mon Sep 17 00:00:00 2001 From: Joris Huizer Date: Fri, 4 Feb 2011 16:36:49 +0100 Subject: [PATCH] imagehlp/tests: Don't test function directly when reporting GetLastError(). --- dlls/imagehlp/tests/integrity.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/imagehlp/tests/integrity.c b/dlls/imagehlp/tests/integrity.c index 10af9fa1a3d..0785c2a4a8b 100644 --- a/dlls/imagehlp/tests/integrity.c +++ b/dlls/imagehlp/tests/integrity.c @@ -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);