Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
05cf71be
Commit
05cf71be
authored
Dec 22, 2017
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Fix an intermittent test failure on Windows XP/Vista.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0875bf89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
winhttp.c
dlls/winhttp/tests/winhttp.c
+7
-1
No files found.
dlls/winhttp/tests/winhttp.c
View file @
05cf71be
...
...
@@ -319,7 +319,7 @@ static void test_SendRequest (void)
static
CHAR
post_data
[]
=
"mode=Test"
;
static
const
char
test_post
[]
=
"mode => Test
\0\n
"
;
HINTERNET
session
,
request
,
connection
;
DWORD
header_len
,
optional_len
,
total_len
,
bytes_rw
,
size
,
err
;
DWORD
header_len
,
optional_len
,
total_len
,
bytes_rw
,
size
,
err
,
disable
;
DWORD_PTR
context
;
BOOL
ret
;
CHAR
buffer
[
256
];
...
...
@@ -350,6 +350,12 @@ static void test_SendRequest (void)
ret
=
WinHttpSetOption
(
request
,
WINHTTP_OPTION_CONTEXT_VALUE
,
&
context
,
sizeof
(
context
));
ok
(
ret
,
"WinHttpSetOption failed: %u
\n
"
,
GetLastError
());
/* writing more data than promised by the content-length header causes an error when the connection
is resued, so disable keep-alive */
disable
=
WINHTTP_DISABLE_KEEP_ALIVE
;
ret
=
WinHttpSetOption
(
request
,
WINHTTP_OPTION_DISABLE_FEATURE
,
&
disable
,
sizeof
(
disable
));
ok
(
ret
,
"WinHttpSetOption failed: %u
\n
"
,
GetLastError
());
context
++
;
ret
=
WinHttpSendRequest
(
request
,
content_type
,
header_len
,
post_data
,
optional_len
,
total_len
,
context
);
err
=
GetLastError
();
...
...
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