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
388b9c6d
Commit
388b9c6d
authored
Aug 09, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report BINDSTATUS_MIMETYPEAVAILABLE in AboutProtocol::Start.
parent
45e671e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
protocol.c
dlls/mshtml/protocol.c
+3
-0
protocol.c
dlls/mshtml/tests/protocol.c
+14
-10
No files found.
dlls/mshtml/protocol.c
View file @
388b9c6d
...
...
@@ -210,6 +210,7 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
static
const
WCHAR
html_end
[]
=
{
'<'
,
'/'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
0
};
static
const
WCHAR
wszBlank
[]
=
{
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
wszAbout
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
};
static
const
WCHAR
wszTextHtml
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'h'
,
't'
,
'm'
,
'l'
,
0
};
/* NOTE:
* the about protocol seems not to work as I would expect. It creates html document
...
...
@@ -242,6 +243,8 @@ static HRESULT WINAPI AboutProtocol_Start(IInternetProtocol *iface, LPCWSTR szUr
This
->
cur
=
0
;
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_MIMETYPEAVAILABLE
,
wszTextHtml
);
IInternetProtocolSink_ReportData
(
pOIProtSink
,
BSCF_FIRSTDATANOTIFICATION
|
BSCF_LASTDATANOTIFICATION
|
BSCF_DATAFULLYAVAILABLE
,
This
->
data_len
,
This
->
data_len
);
...
...
dlls/mshtml/tests/protocol.c
View file @
388b9c6d
...
...
@@ -191,7 +191,7 @@ static void test_protocol_fail(IInternetProtocol *protocol, LPCWSTR url, HRESULT
expect_GetBindInfo
=
called_GetBindInfo
=
FALSE
;
}
static
void
protocol_start
(
IInternetProtocol
*
protocol
,
LPCWSTR
url
)
static
void
protocol_start
(
IInternetProtocol
*
protocol
,
LPCWSTR
url
,
BOOL
is_mime_todo
)
{
HRESULT
hres
;
...
...
@@ -204,7 +204,11 @@ static void protocol_start(IInternetProtocol *protocol, LPCWSTR url)
hres
=
IInternetProtocol_Start
(
protocol
,
url
,
&
protocol_sink
,
&
bind_info
,
0
,
0
);
ok
(
hres
==
S_OK
,
"Start failed: %08lx
\n
"
,
hres
);
ok
(
called_GetBindInfo
,
"expected GetBindInfo
\n
"
);
todo_wine
{
if
(
is_mime_todo
)
{
todo_wine
{
ok
(
called_ReportProgress
,
"expected ReportProgress
\n
"
);
}
}
else
{
ok
(
called_ReportProgress
,
"expected ReportProgress
\n
"
);
}
ok
(
called_ReportData
,
"expected ReportData
\n
"
);
...
...
@@ -266,7 +270,7 @@ static void test_res_protocol(void)
ok
(
hres
==
E_FAIL
,
"Read returned %08lx expected E_FAIL
\n
"
,
hres
);
ok
(
cb
==
0xdeadbeef
,
"cb=%lu expected 0xdeadbeef
\n
"
,
cb
);
protocol_start
(
protocol
,
blank_url
);
protocol_start
(
protocol
,
blank_url
,
TRUE
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
2
,
&
cb
);
ok
(
hres
==
S_OK
,
"Read failed: %08lx
\n
"
,
hres
);
ok
(
cb
==
2
,
"cb=%lu expected 2
\n
"
,
cb
);
...
...
@@ -278,7 +282,7 @@ static void test_res_protocol(void)
hres
=
IInternetProtocol_UnlockRequest
(
protocol
);
ok
(
hres
==
S_OK
,
"UnlockRequest failed: %08lx
\n
"
,
hres
);
protocol_start
(
protocol
,
blank_url
);
protocol_start
(
protocol
,
blank_url
,
TRUE
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
2
,
&
cb
);
ok
(
hres
==
S_OK
,
"Read failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_LockRequest
(
protocol
,
0
);
...
...
@@ -288,7 +292,7 @@ static void test_res_protocol(void)
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
ok
(
hres
==
S_OK
,
"Read failed: %08lx
\n
"
,
hres
);
protocol_start
(
protocol
,
blank_url
);
protocol_start
(
protocol
,
blank_url
,
TRUE
);
hres
=
IInternetProtocol_LockRequest
(
protocol
,
0
);
ok
(
hres
==
S_OK
,
"LockRequest failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_Terminate
(
protocol
,
0
);
...
...
@@ -305,12 +309,12 @@ static void test_res_protocol(void)
ok
(
hres
==
S_OK
,
"Read failed: %08lx
\n
"
,
hres
);
ok
(
cb
==
2
,
"cb=%lu expected 2
\n
"
,
cb
);
protocol_start
(
protocol
,
blank_url
);
protocol_start
(
protocol
,
blank_url
,
TRUE
);
hres
=
IInternetProtocol_LockRequest
(
protocol
,
0
);
ok
(
hres
==
S_OK
,
"LockRequest failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
ok
(
hres
==
S_OK
,
"Read failed: %08lx
\n
"
,
hres
);
protocol_start
(
protocol
,
blank_url
);
protocol_start
(
protocol
,
blank_url
,
TRUE
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
ok
(
hres
==
S_OK
,
"Read failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_Terminate
(
protocol
,
0
);
...
...
@@ -361,7 +365,7 @@ static void test_about_protocol(void)
ok
(
hres
==
S_OK
,
"Could not get IInternetProtocol: %08lx
\n
"
,
hres
);
if
(
SUCCEEDED
(
hres
))
{
protocol_start
(
protocol
,
blank_url
);
protocol_start
(
protocol
,
blank_url
,
FALSE
);
hres
=
IInternetProtocol_LockRequest
(
protocol
,
0
);
ok
(
hres
==
S_OK
,
"LockRequest failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
...
...
@@ -371,7 +375,7 @@ static void test_about_protocol(void)
hres
=
IInternetProtocol_UnlockRequest
(
protocol
);
ok
(
hres
==
S_OK
,
"UnlockRequest failed: %08lx
\n
"
,
hres
);
protocol_start
(
protocol
,
test_url
);
protocol_start
(
protocol
,
test_url
,
FALSE
);
hres
=
IInternetProtocol_LockRequest
(
protocol
,
0
);
ok
(
hres
==
S_OK
,
"LockRequest failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
...
...
@@ -381,7 +385,7 @@ static void test_about_protocol(void)
hres
=
IInternetProtocol_UnlockRequest
(
protocol
);
ok
(
hres
==
S_OK
,
"UnlockRequest failed: %08lx
\n
"
,
hres
);
protocol_start
(
protocol
,
res_url
);
protocol_start
(
protocol
,
res_url
,
FALSE
);
hres
=
IInternetProtocol_LockRequest
(
protocol
,
0
);
ok
(
hres
==
S_OK
,
"LockRequest failed: %08lx
\n
"
,
hres
);
hres
=
IInternetProtocol_Read
(
protocol
,
buf
,
sizeof
(
buf
),
&
cb
);
...
...
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