Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bfa0e4b8
Commit
bfa0e4b8
authored
Nov 16, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Fix test failures on Windows XP.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8683fc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
winhttp.c
dlls/winhttp/tests/winhttp.c
+6
-2
No files found.
dlls/winhttp/tests/winhttp.c
View file @
bfa0e4b8
...
...
@@ -995,7 +995,10 @@ static void test_secure_connection(void)
ok
(
req
!=
NULL
,
"failed to open a request %u
\n
"
,
GetLastError
());
ret
=
WinHttpSetOption
(
req
,
WINHTTP_OPTION_CLIENT_CERT_CONTEXT
,
WINHTTP_NO_CLIENT_CERT_CONTEXT
,
0
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_WINHTTP_INCORRECT_HANDLE_STATE
,
"setting client cert context returned %x (%u)
\n
"
,
ret
,
GetLastError
());
err
=
GetLastError
();
ok
(
!
ret
,
"unexpected success
\n
"
);
ok
(
err
==
ERROR_WINHTTP_INCORRECT_HANDLE_STATE
||
broken
(
err
==
ERROR_INVALID_PARAMETER
)
/* winxp */
,
"setting client cert context returned %u
\n
"
,
err
);
ret
=
WinHttpSendRequest
(
req
,
NULL
,
0
,
NULL
,
0
,
0
,
0
);
err
=
GetLastError
();
...
...
@@ -1021,7 +1024,8 @@ static void test_secure_connection(void)
ok
(
req
!=
NULL
,
"failed to open a request %u
\n
"
,
GetLastError
());
ret
=
WinHttpSetOption
(
req
,
WINHTTP_OPTION_CLIENT_CERT_CONTEXT
,
WINHTTP_NO_CLIENT_CERT_CONTEXT
,
0
);
ok
(
ret
,
"failed to set client cert context %u
\n
"
,
GetLastError
());
err
=
GetLastError
();
ok
(
ret
||
broken
(
!
ret
&&
err
==
ERROR_INVALID_PARAMETER
)
/* winxp */
,
"failed to set client cert context %u
\n
"
,
err
);
WinHttpSetStatusCallback
(
req
,
cert_error
,
WINHTTP_CALLBACK_STATUS_SECURE_FAILURE
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment