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
259cd793
Commit
259cd793
authored
Jan 20, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Test if url reported in IInternetProtocol::Start is valid during binding.
parent
601ba02b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
url.c
dlls/urlmon/tests/url.c
+3
-0
No files found.
dlls/urlmon/tests/url.c
View file @
259cd793
...
@@ -192,6 +192,7 @@ static const WCHAR emptyW[] = {0};
...
@@ -192,6 +192,7 @@ static const WCHAR emptyW[] = {0};
static
BOOL
stopped_binding
=
FALSE
,
stopped_obj_binding
=
FALSE
,
emulate_protocol
=
FALSE
,
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
;
data_available
=
FALSE
,
http_is_first
=
TRUE
,
bind_to_object
=
FALSE
,
filedwl_api
;
static
DWORD
read
=
0
,
bindf
=
0
,
prot_state
=
0
,
thread_id
,
tymed
,
security_problem
;
static
DWORD
read
=
0
,
bindf
=
0
,
prot_state
=
0
,
thread_id
,
tymed
,
security_problem
;
static
const
WCHAR
*
reported_url
;
static
CHAR
mime_type
[
512
];
static
CHAR
mime_type
[
512
];
static
IInternetProtocolSink
*
protocol_sink
=
NULL
;
static
IInternetProtocolSink
*
protocol_sink
=
NULL
;
static
IBinding
*
current_binding
;
static
IBinding
*
current_binding
;
...
@@ -620,6 +621,7 @@ static HRESULT WINAPI Protocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
...
@@ -620,6 +621,7 @@ static HRESULT WINAPI Protocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
read
=
0
;
read
=
0
;
reported_url
=
szUrl
;
if
(
!
filedwl_api
)
/* FIXME */
if
(
!
filedwl_api
)
/* FIXME */
ok
(
szUrl
&&
!
lstrcmpW
(
szUrl
,
urls
[
test_protocol
]),
"wrong url %s
\n
"
,
wine_dbgstr_w
(
szUrl
));
ok
(
szUrl
&&
!
lstrcmpW
(
szUrl
,
urls
[
test_protocol
]),
"wrong url %s
\n
"
,
wine_dbgstr_w
(
szUrl
));
ok
(
pOIProtSink
!=
NULL
,
"pOIProtSink == NULL
\n
"
);
ok
(
pOIProtSink
!=
NULL
,
"pOIProtSink == NULL
\n
"
);
...
@@ -944,6 +946,7 @@ static HRESULT WINAPI Protocol_Continue(IInternetProtocol *iface,
...
@@ -944,6 +946,7 @@ static HRESULT WINAPI Protocol_Continue(IInternetProtocol *iface,
CHECK_EXPECT
(
Continue
);
CHECK_EXPECT
(
Continue
);
ok
(
GetCurrentThreadId
()
==
thread_id
,
"wrong thread %d
\n
"
,
GetCurrentThreadId
());
ok
(
GetCurrentThreadId
()
==
thread_id
,
"wrong thread %d
\n
"
,
GetCurrentThreadId
());
ok
(
reported_url
&&
!
lstrcmpW
(
reported_url
,
urls
[
test_protocol
]),
"wrong url %s
\n
"
,
wine_dbgstr_w
(
reported_url
));
ok
(
pProtocolData
!=
NULL
,
"pProtocolData == NULL
\n
"
);
ok
(
pProtocolData
!=
NULL
,
"pProtocolData == NULL
\n
"
);
if
(
!
pProtocolData
)
if
(
!
pProtocolData
)
...
...
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