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
07e7a117
Commit
07e7a117
authored
Jul 25, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Aug 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implemented IUri_GetExtension.
parent
eb6e23e1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
uri.c
dlls/urlmon/tests/uri.c
+0
-0
uri.c
dlls/urlmon/uri.c
+26
-7
No files found.
dlls/urlmon/tests/uri.c
View file @
07e7a117
This diff is collapsed.
Click to expand it.
dlls/urlmon/uri.c
View file @
07e7a117
...
...
@@ -2835,6 +2835,20 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST
hres
=
E_OUTOFMEMORY
;
break
;
case
Uri_PROPERTY_EXTENSION
:
if
(
This
->
extension_offset
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
path_start
+
This
->
extension_offset
,
This
->
path_len
-
This
->
extension_offset
);
hres
=
S_OK
;
}
else
{
*
pbstrProperty
=
SysAllocStringLen
(
NULL
,
0
);
hres
=
S_FALSE
;
}
if
(
!
(
*
pbstrProperty
))
hres
=
E_OUTOFMEMORY
;
break
;
case
Uri_PROPERTY_HOST
:
if
(
This
->
host_start
>
-
1
)
{
/* The '[' and ']' aren't included for IPv6 addresses. */
...
...
@@ -2975,6 +2989,16 @@ static HRESULT WINAPI Uri_GetPropertyLength(IUri *iface, Uri_PROPERTY uriProp, D
hres
=
(
This
->
domain_offset
>
-
1
)
?
S_OK
:
S_FALSE
;
break
;
case
Uri_PROPERTY_EXTENSION
:
if
(
This
->
extension_offset
>
-
1
)
{
*
pcchProperty
=
This
->
path_len
-
This
->
extension_offset
;
hres
=
S_OK
;
}
else
{
*
pcchProperty
=
0
;
hres
=
S_FALSE
;
}
break
;
case
Uri_PROPERTY_HOST
:
*
pcchProperty
=
This
->
host_len
;
...
...
@@ -3115,13 +3139,8 @@ static HRESULT WINAPI Uri_GetDomain(IUri *iface, BSTR *pstrDomain)
static
HRESULT
WINAPI
Uri_GetExtension
(
IUri
*
iface
,
BSTR
*
pstrExtension
)
{
Uri
*
This
=
URI_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pstrExtension
);
if
(
!
pstrExtension
)
return
E_POINTER
;
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
pstrExtension
);
return
Uri_GetPropertyBSTR
(
iface
,
Uri_PROPERTY_EXTENSION
,
pstrExtension
,
0
);
}
static
HRESULT
WINAPI
Uri_GetFragment
(
IUri
*
iface
,
BSTR
*
pstrFragment
)
...
...
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