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
e83b91dd
Commit
e83b91dd
authored
Aug 03, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Don't use read as a global variable.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
0993c5ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
url.c
dlls/urlmon/tests/url.c
+5
-5
No files found.
dlls/urlmon/tests/url.c
View file @
e83b91dd
...
...
@@ -170,7 +170,7 @@ static const WCHAR emptyW[] = {0};
static
BOOL
stopped_binding
=
FALSE
,
stopped_obj_binding
=
FALSE
,
emulate_protocol
=
FALSE
,
data_available
=
FALSE
,
http_is_first
=
TRUE
,
bind_to_object
=
FALSE
,
filedwl_api
,
post_test
;
static
DWORD
read
=
0
,
bindf
=
0
,
prot_state
=
0
,
thread_id
,
tymed
,
security_problem
;
static
DWORD
n
read
=
0
,
bindf
=
0
,
prot_state
=
0
,
thread_id
,
tymed
,
security_problem
;
static
const
WCHAR
*
reported_url
;
static
CHAR
mime_type
[
512
];
static
IInternetProtocolSink
*
protocol_sink
=
NULL
;
...
...
@@ -580,7 +580,7 @@ static HRESULT WINAPI Protocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
CHECK_EXPECT
(
Start
);
read
=
0
;
n
read
=
0
;
reported_url
=
szUrl
;
if
(
!
filedwl_api
)
/* FIXME */
...
...
@@ -1128,7 +1128,7 @@ static HRESULT WINAPI Protocol_Read(IInternetProtocol *iface, void *pv,
}
else
{
memset
(
pv
,
'?'
,
cb
);
*
pcbRead
=
cb
;
read
++
;
n
read
++
;
return
S_OK
;
}
case
3
:
...
...
@@ -1150,7 +1150,7 @@ static HRESULT WINAPI Protocol_Read(IInternetProtocol *iface, void *pv,
}
}
if
(
read
)
{
if
(
n
read
)
{
*
pcbRead
=
0
;
return
S_FALSE
;
}
...
...
@@ -1163,7 +1163,7 @@ static HRESULT WINAPI Protocol_Read(IInternetProtocol *iface, void *pv,
}
ok
(
*
pcbRead
==
0
,
"*pcbRead=%ld, expected 0
\n
"
,
*
pcbRead
);
read
+=
*
pcbRead
=
sizeof
(
data
)
-
1
;
n
read
+=
*
pcbRead
=
sizeof
(
data
)
-
1
;
memcpy
(
pv
,
data
,
sizeof
(
data
));
return
S_OK
;
}
...
...
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