wininet/tests: Fix an InternetQueryOptionA/W mixup in test_secure_connection().

The point of the test is to prove that InternetQueryOptionW() can be
called on a request obtained with HttpOpenRequestA() and still returns
ANSI strings.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-06-06 15:37:25 +02:00 committed by Alexandre Julliard
parent c94a2efc39
commit 29b1a498aa
1 changed files with 2 additions and 2 deletions

View File

@ -6734,7 +6734,7 @@ static void test_secure_connection(void)
test_cert_struct(req, &test_winehq_org_cert);
/* Querying the same option through InternetQueryOptionW still results in
* ASCII strings being returned.
* ANSI strings being returned.
*/
size = 0;
ret = InternetQueryOptionW(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
@ -6742,7 +6742,7 @@ static void test_secure_connection(void)
ok(ret || GetLastError() == ERROR_INSUFFICIENT_BUFFER, "InternetQueryOption failed: %d\n", GetLastError());
ok(size == sizeof(INTERNET_CERTIFICATE_INFOW), "size = %d\n", size);
certificate_structW = HeapAlloc(GetProcessHeap(), 0, size);
ret = InternetQueryOptionA(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
ret = InternetQueryOptionW(req, INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT,
certificate_structW, &size);
certificate_structA = (INTERNET_CERTIFICATE_INFOA *)certificate_structW;
ok(ret, "InternetQueryOption failed: %d\n", GetLastError());