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
114a1a22
Commit
114a1a22
authored
Aug 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return INET_E_USE_DEFAULT_PROTOCOLHANDLER in ResProtocolInfo::CombineUrl.
parent
3d506d85
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
protocol.c
dlls/mshtml/protocol.c
+3
-2
protocol.c
dlls/mshtml/tests/protocol.c
+17
-0
No files found.
dlls/mshtml/protocol.c
View file @
114a1a22
...
...
@@ -841,9 +841,10 @@ static HRESULT WINAPI ResProtocolInfo_CombineUrl(IInternetProtocolInfo *iface, L
LPCWSTR
pwzRelativeUrl
,
DWORD
dwCombineFlags
,
LPWSTR
pwzResult
,
DWORD
cchResult
,
DWORD
*
pcchResult
,
DWORD
dwReserved
)
{
FIXM
E
(
"%p)->(%s %s %08lx %p %ld %p %ld)
\n
"
,
iface
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
TRAC
E
(
"%p)->(%s %s %08lx %p %ld %p %ld)
\n
"
,
iface
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
return
E_NOTIMPL
;
return
INET_E_USE_DEFAULT_PROTOCOLHANDLER
;
}
static
HRESULT
WINAPI
ResProtocolInfo_CompareUrl
(
IInternetProtocolInfo
*
iface
,
LPCWSTR
pwzUrl1
,
...
...
dlls/mshtml/tests/protocol.c
View file @
114a1a22
...
...
@@ -25,6 +25,7 @@
#include "winbase.h"
#include "ole2.h"
#include "urlmon.h"
#include "shlwapi.h"
#include "initguid.h"
...
...
@@ -247,6 +248,7 @@ static void test_res_protocol(void)
static
const
WCHAR
blank_url
[]
=
{
'r'
,
'e'
,
's'
,
':'
,
'/'
,
'/'
,
'm'
,
's'
,
'h'
,
't'
,
'm'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
'/'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
'.'
,
'h'
,
't'
,
'm'
,
0
};
static
const
WCHAR
test_part_url
[]
=
{
'r'
,
'e'
,
's'
,
':'
,
'/'
,
'/'
,
'C'
,
'S'
,
'S'
,
'/'
,
't'
,
'e'
,
's'
,
't'
,
0
};
static
const
WCHAR
wrong_url1
[]
=
{
'm'
,
's'
,
'h'
,
't'
,
'm'
,
'l'
,
'.'
,
'd'
,
'l'
,
'l'
,
'/'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
'.'
,
'm'
,
't'
,
'h'
,
0
};
static
const
WCHAR
wrong_url2
[]
=
...
...
@@ -334,6 +336,21 @@ static void test_res_protocol(void)
"ParseUrl failed: %08lx, expected INET_E_DEFAULT_ACTION
\n
"
,
hres
);
ok
(
buf
[
0
]
==
'?'
,
"buf changed
\n
"
);
size
=
0xdeadbeef
;
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
);
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
);
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
);
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