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
57ba0459
Commit
57ba0459
authored
Aug 12, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return INET_E_USE_DEFAULT_PROTOCOLHANDLER in about protocol handler's CombineUrl.
parent
9e49a8d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
21 deletions
+34
-21
protocol.c
dlls/mshtml/protocol.c
+13
-21
protocol.c
dlls/mshtml/tests/protocol.c
+21
-0
No files found.
dlls/mshtml/protocol.c
View file @
57ba0459
...
...
@@ -91,6 +91,17 @@ static ULONG WINAPI InternetProtocolInfo_Release(IInternetProtocolInfo *iface)
return
1
;
}
static
HRESULT
WINAPI
InternetProtocolInfo_CombineUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzBaseUrl
,
LPCWSTR
pwzRelativeUrl
,
DWORD
dwCombineFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
TRACE
(
"%p)->(%s %s %08lx %p %ld %p %ld)
\n
"
,
iface
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
return
INET_E_USE_DEFAULT_PROTOCOLHANDLER
;
}
#undef PROTOCOLINFO_THIS
#define CLASSFACTORY_THIS(iface) DEFINE_THIS(ProtocolFactory, ClassFactory, iface)
...
...
@@ -427,15 +438,6 @@ static HRESULT WINAPI AboutProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, L
return
INET_E_DEFAULT_ACTION
;
}
static
HRESULT
WINAPI
AboutProtocolInfo_CombineUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzBaseUrl
,
LPCWSTR
pwzRelativeUrl
,
DWORD
dwCombineFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
FIXME
(
"%p)->(%s %s %08lx %p %ld %p %ld)
\n
"
,
iface
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
AboutProtocolInfo_CompareUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
...
...
@@ -457,7 +459,7 @@ static const IInternetProtocolInfoVtbl AboutProtocolInfoVtbl = {
InternetProtocolInfo_AddRef
,
InternetProtocolInfo_Release
,
AboutProtocolInfo_ParseUrl
,
Abou
tProtocolInfo_CombineUrl
,
Interne
tProtocolInfo_CombineUrl
,
AboutProtocolInfo_CompareUrl
,
AboutProtocolInfo_QueryInfo
};
...
...
@@ -837,16 +839,6 @@ static HRESULT WINAPI ResProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPC
return
INET_E_DEFAULT_ACTION
;
}
static
HRESULT
WINAPI
ResProtocolInfo_CombineUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzBaseUrl
,
LPCWSTR
pwzRelativeUrl
,
DWORD
dwCombineFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
TRACE
(
"%p)->(%s %s %08lx %p %ld %p %ld)
\n
"
,
iface
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
return
INET_E_USE_DEFAULT_PROTOCOLHANDLER
;
}
static
HRESULT
WINAPI
ResProtocolInfo_CompareUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl1
,
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
...
...
@@ -868,7 +860,7 @@ static const IInternetProtocolInfoVtbl ResProtocolInfoVtbl = {
InternetProtocolInfo_AddRef
,
InternetProtocolInfo_Release
,
ResProtocolInfo_ParseUrl
,
Res
ProtocolInfo_CombineUrl
,
Internet
ProtocolInfo_CombineUrl
,
ResProtocolInfo_CompareUrl
,
ResProtocolInfo_QueryInfo
};
...
...
dlls/mshtml/tests/protocol.c
View file @
57ba0459
...
...
@@ -340,16 +340,19 @@ static void test_res_protocol(void)
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
blank_url
,
test_part_url
,
0
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
size
,
0
);
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08lx
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%ld
\n
"
,
size
);
size
=
0xdeadbeef
;
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
blank_url
,
test_part_url
,
URL_FILE_USE_PATHURL
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
size
,
0
);
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08lx
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%ld
\n
"
,
size
);
size
=
0xdeadbeef
;
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
NULL
,
NULL
,
URL_FILE_USE_PATHURL
,
NULL
,
0xdeadbeef
,
NULL
,
0
);
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08lx
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%ld
\n
"
,
size
);
IInternetProtocolInfo_Release
(
protocol_info
);
}
...
...
@@ -517,6 +520,24 @@ static void test_about_protocol(void)
ok
(
hres
==
INET_E_DEFAULT_ACTION
,
"ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION
\n
"
,
hres
);
size
=
0xdeadbeef
;
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
blank_url
,
test_url
,
0
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
size
,
0
);
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08lx
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%ld
\n
"
,
size
);
size
=
0xdeadbeef
;
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
blank_url
,
test_url
,
URL_FILE_USE_PATHURL
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
size
,
0
);
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08lx
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%ld
\n
"
,
size
);
size
=
0xdeadbeef
;
hres
=
IInternetProtocolInfo_CombineUrl
(
protocol_info
,
NULL
,
NULL
,
URL_FILE_USE_PATHURL
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
size
,
0
);
ok
(
hres
==
INET_E_USE_DEFAULT_PROTOCOLHANDLER
,
"CombineUrl failed: %08lx
\n
"
,
hres
);
ok
(
size
==
0xdeadbeef
,
"size=%ld
\n
"
,
size
);
IInternetProtocolInfo_Release
(
protocol_info
);
}
...
...
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