Commit 6e4d52a7 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winhttp/tests: Fix potential crash on BSD.

parent 5272ca24
......@@ -876,12 +876,15 @@ static void test_secure_connection(void)
ret = WinHttpQueryOption(req, WINHTTP_OPTION_SECURITY_CERTIFICATE_STRUCT, &info, &size );
ok(ret, "failed to retrieve certificate info %u\n", GetLastError());
trace("lpszSubjectInfo %s\n", wine_dbgstr_w(info.lpszSubjectInfo));
trace("lpszIssuerInfo %s\n", wine_dbgstr_w(info.lpszIssuerInfo));
trace("lpszProtocolName %s\n", wine_dbgstr_w(info.lpszProtocolName));
trace("lpszSignatureAlgName %s\n", wine_dbgstr_w(info.lpszSignatureAlgName));
trace("lpszEncryptionAlgName %s\n", wine_dbgstr_w(info.lpszEncryptionAlgName));
trace("dwKeySize %u\n", info.dwKeySize);
if (!ret)
{
trace("lpszSubjectInfo %s\n", wine_dbgstr_w(info.lpszSubjectInfo));
trace("lpszIssuerInfo %s\n", wine_dbgstr_w(info.lpszIssuerInfo));
trace("lpszProtocolName %s\n", wine_dbgstr_w(info.lpszProtocolName));
trace("lpszSignatureAlgName %s\n", wine_dbgstr_w(info.lpszSignatureAlgName));
trace("lpszEncryptionAlgName %s\n", wine_dbgstr_w(info.lpszEncryptionAlgName));
trace("dwKeySize %u\n", info.dwKeySize);
}
ret = WinHttpReceiveResponse(req, NULL);
ok(ret, "failed to receive response %u\n", GetLastError());
......
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