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
165000d4
Commit
165000d4
authored
Nov 09, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Avoid an invalid write in asynchronous mode (Valgrind).
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
633779b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
notification.c
dlls/winhttp/tests/notification.c
+2
-3
No files found.
dlls/winhttp/tests/notification.c
View file @
165000d4
...
...
@@ -920,7 +920,7 @@ static const struct notification read_allow_close_test[] =
static
void
_read_request_data
(
struct
test_request
*
req
,
struct
info
*
info
,
const
char
*
expected_data
,
BOOL
closing_connection
,
unsigned
line
)
{
char
buffer
[
1024
];
DWORD
read
,
len
;
DWORD
len
;
BOOL
ret
;
if
(
closing_connection
)
...
...
@@ -937,8 +937,7 @@ static void _read_request_data(struct test_request *req, struct info *info, cons
setup_test
(
info
,
winhttp_read_data
,
line
);
memset
(
buffer
,
'?'
,
sizeof
(
buffer
));
read
=
0xdeadbeef
;
ret
=
WinHttpReadData
(
req
->
request
,
buffer
,
sizeof
(
buffer
),
&
read
);
ret
=
WinHttpReadData
(
req
->
request
,
buffer
,
sizeof
(
buffer
),
NULL
);
ok
(
ret
,
"failed to read data %u
\n
"
,
GetLastError
());
WaitForSingleObject
(
info
->
wait
,
INFINITE
);
...
...
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