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
e403053d
Commit
e403053d
authored
Jul 29, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implemented IUri_GetDisplayUri.
parent
16dd03ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
7 deletions
+34
-7
uri.c
dlls/urlmon/tests/uri.c
+0
-0
uri.c
dlls/urlmon/uri.c
+34
-7
No files found.
dlls/urlmon/tests/uri.c
View file @
e403053d
This diff is collapsed.
Click to expand it.
dlls/urlmon/uri.c
View file @
e403053d
...
...
@@ -3056,6 +3056,30 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST
hres
=
E_OUTOFMEMORY
;
break
;
case
Uri_PROPERTY_DISPLAY_URI
:
/* The Display URI contains everything except for the userinfo for known
* scheme types.
*/
if
(
This
->
scheme_type
!=
URL_SCHEME_UNKNOWN
&&
This
->
userinfo_start
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
NULL
,
This
->
canon_len
-
This
->
userinfo_len
);
if
(
*
pbstrProperty
)
{
/* Copy everything before the userinfo over. */
memcpy
(
*
pbstrProperty
,
This
->
canon_uri
,
This
->
userinfo_start
*
sizeof
(
WCHAR
));
/* Copy everything after the userinfo over. */
memcpy
(
*
pbstrProperty
+
This
->
userinfo_start
,
This
->
canon_uri
+
This
->
userinfo_start
+
This
->
userinfo_len
+
1
,
(
This
->
canon_len
-
(
This
->
userinfo_start
+
This
->
userinfo_len
+
1
))
*
sizeof
(
WCHAR
));
}
}
else
*
pbstrProperty
=
SysAllocString
(
This
->
canon_uri
);
if
(
!
(
*
pbstrProperty
))
hres
=
E_OUTOFMEMORY
;
else
hres
=
S_OK
;
break
;
case
Uri_PROPERTY_DOMAIN
:
if
(
This
->
domain_offset
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
host_start
+
This
->
domain_offset
,
...
...
@@ -3262,6 +3286,14 @@ static HRESULT WINAPI Uri_GetPropertyLength(IUri *iface, Uri_PROPERTY uriProp, D
*
pcchProperty
=
This
->
authority_len
;
hres
=
(
This
->
authority_start
>
-
1
)
?
S_OK
:
S_FALSE
;
break
;
case
Uri_PROPERTY_DISPLAY_URI
:
if
(
This
->
scheme_type
!=
URL_SCHEME_UNKNOWN
&&
This
->
userinfo_start
>
-
1
)
*
pcchProperty
=
This
->
canon_len
-
This
->
userinfo_len
-
1
;
else
*
pcchProperty
=
This
->
canon_len
;
hres
=
S_OK
;
break
;
case
Uri_PROPERTY_DOMAIN
:
if
(
This
->
domain_offset
>
-
1
)
*
pcchProperty
=
This
->
host_len
-
This
->
domain_offset
;
...
...
@@ -3410,13 +3442,8 @@ static HRESULT WINAPI Uri_GetAuthority(IUri *iface, BSTR *pstrAuthority)
static
HRESULT
WINAPI
Uri_GetDisplayUri
(
IUri
*
iface
,
BSTR
*
pstrDisplayUri
)
{
Uri
*
This
=
URI_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pstrDisplayUri
);
if
(
!
pstrDisplayUri
)
return
E_POINTER
;
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
pstrDisplayUri
);
return
Uri_GetPropertyBSTR
(
iface
,
Uri_PROPERTY_DISPLAY_URI
,
pstrDisplayUri
,
0
);
}
static
HRESULT
WINAPI
Uri_GetDomain
(
IUri
*
iface
,
BSTR
*
pstrDomain
)
...
...
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