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
b5e70534
Commit
b5e70534
authored
Jul 27, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Aug 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implemented IUri_GetPathAndQuery.
parent
45069a33
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
uri.c
dlls/urlmon/tests/uri.c
+0
-0
uri.c
dlls/urlmon/uri.c
+22
-7
No files found.
dlls/urlmon/tests/uri.c
View file @
b5e70534
This diff is collapsed.
Click to expand it.
dlls/urlmon/uri.c
View file @
b5e70534
...
...
@@ -3014,6 +3014,22 @@ static HRESULT WINAPI Uri_GetPropertyBSTR(IUri *iface, Uri_PROPERTY uriProp, BST
hres
=
E_OUTOFMEMORY
;
break
;
case
Uri_PROPERTY_PATH_AND_QUERY
:
if
(
This
->
path_start
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
path_start
,
This
->
path_len
+
This
->
query_len
);
hres
=
S_OK
;
}
else
if
(
This
->
query_start
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
query_start
,
This
->
query_len
);
hres
=
S_OK
;
}
else
{
*
pbstrProperty
=
SysAllocStringLen
(
NULL
,
0
);
hres
=
S_FALSE
;
}
if
(
!
(
*
pbstrProperty
))
hres
=
E_OUTOFMEMORY
;
break
;
case
Uri_PROPERTY_QUERY
:
if
(
This
->
query_start
>
-
1
)
{
*
pbstrProperty
=
SysAllocStringLen
(
This
->
canon_uri
+
This
->
query_start
,
This
->
query_len
);
...
...
@@ -3148,6 +3164,10 @@ static HRESULT WINAPI Uri_GetPropertyLength(IUri *iface, Uri_PROPERTY uriProp, D
*
pcchProperty
=
This
->
path_len
;
hres
=
(
This
->
path_start
>
-
1
)
?
S_OK
:
S_FALSE
;
break
;
case
Uri_PROPERTY_PATH_AND_QUERY
:
*
pcchProperty
=
This
->
path_len
+
This
->
query_len
;
hres
=
(
This
->
path_start
>
-
1
||
This
->
query_start
>
-
1
)
?
S_OK
:
S_FALSE
;
break
;
case
Uri_PROPERTY_QUERY
:
*
pcchProperty
=
This
->
query_len
;
hres
=
(
This
->
query_start
>
-
1
)
?
S_OK
:
S_FALSE
;
...
...
@@ -3310,13 +3330,8 @@ static HRESULT WINAPI Uri_GetPath(IUri *iface, BSTR *pstrPath)
static
HRESULT
WINAPI
Uri_GetPathAndQuery
(
IUri
*
iface
,
BSTR
*
pstrPathAndQuery
)
{
Uri
*
This
=
URI_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pstrPathAndQuery
);
if
(
!
pstrPathAndQuery
)
return
E_POINTER
;
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
pstrPathAndQuery
);
return
Uri_GetPropertyBSTR
(
iface
,
Uri_PROPERTY_PATH_AND_QUERY
,
pstrPathAndQuery
,
0
);
}
static
HRESULT
WINAPI
Uri_GetQuery
(
IUri
*
iface
,
BSTR
*
pstrQuery
)
...
...
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