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
c98ca177
Commit
c98ca177
authored
Oct 25, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fixed tests on IE7.
parent
f4f0c8fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
mk.c
dlls/urlmon/mk.c
+3
-3
protocol.c
dlls/urlmon/tests/protocol.c
+3
-2
No files found.
dlls/urlmon/mk.c
View file @
c98ca177
...
...
@@ -122,6 +122,9 @@ static HRESULT WINAPI MkProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
TRACE
(
"(%p)->(%s %p %p %08x %d)
\n
"
,
This
,
debugstr_w
(
szUrl
),
pOIProtSink
,
pOIBindInfo
,
grfPI
,
dwReserved
);
if
(
strncmpiW
(
szUrl
,
wszMK
,
sizeof
(
wszMK
)
/
sizeof
(
WCHAR
)))
return
INET_E_INVALID_URL
;
memset
(
&
bindinfo
,
0
,
sizeof
(
bindinfo
));
bindinfo
.
cbSize
=
sizeof
(
BINDINFO
);
hres
=
IInternetBindInfo_GetBindInfo
(
pOIBindInfo
,
&
bindf
,
&
bindinfo
);
...
...
@@ -132,9 +135,6 @@ static HRESULT WINAPI MkProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
ReleaseBindInfo
(
&
bindinfo
);
if
(
strncmpiW
(
szUrl
,
wszMK
,
sizeof
(
wszMK
)
/
sizeof
(
WCHAR
)))
return
MK_E_SYNTAX
;
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_DIRECTBIND
,
NULL
);
IInternetProtocolSink_ReportProgress
(
pOIProtSink
,
BINDSTATUS_SENDINGREQUEST
,
NULL
);
...
...
dlls/urlmon/tests/protocol.c
View file @
c98ca177
...
...
@@ -1404,8 +1404,9 @@ static void test_mk_protocol(void)
SET_EXPECT
(
GetBindInfo
);
hres
=
IInternetProtocol_Start
(
protocol
,
wrong_url1
,
&
protocol_sink
,
&
bind_info
,
0
,
0
);
ok
(
hres
==
MK_E_SYNTAX
,
"Start failed: %08x, expected MK_E_SYNTAX
\n
"
,
hres
);
CHECK_CALLED
(
GetBindInfo
);
ok
(
hres
==
MK_E_SYNTAX
||
hres
==
INET_E_INVALID_URL
,
"Start failed: %08x, expected MK_E_SYNTAX or INET_E_INVALID_URL
\n
"
,
hres
);
CLEAR_CALLED
(
GetBindInfo
);
SET_EXPECT
(
GetBindInfo
);
SET_EXPECT
(
ReportProgress_DIRECTBIND
);
...
...
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