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
7f6faca6
Commit
7f6faca6
authored
Sep 06, 2010
by
Thomas Mullaly
Committed by
Alexandre Julliard
Sep 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implemented IUriBuilder_{Get/Set}SchemeName.
parent
b27e9297
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
uri.c
dlls/urlmon/tests/uri.c
+2
-2
uri.c
dlls/urlmon/uri.c
+12
-15
No files found.
dlls/urlmon/tests/uri.c
View file @
7f6faca6
...
...
@@ -4313,7 +4313,7 @@ static const uri_builder_test uri_builder_tests[] = {
},
{
"http://google.com/"
,
0
,
S_OK
,
FALSE
,
{
{
TRUE
,
"test"
,
NULL
,
Uri_PROPERTY_SCHEME_NAME
,
S_OK
,
TRU
E
}
{
TRUE
,
"test"
,
NULL
,
Uri_PROPERTY_SCHEME_NAME
,
S_OK
,
FALS
E
}
},
{
TRUE
,
TRUE
,
120
,
S_OK
,
FALSE
},
0
,
S_OK
,
TRUE
,
...
...
@@ -4345,7 +4345,7 @@ static const uri_builder_test uri_builder_tests[] = {
},
{
"/Test/test dir"
,
Uri_CREATE_ALLOW_RELATIVE
,
S_OK
,
FALSE
,
{
{
TRUE
,
"http"
,
NULL
,
Uri_PROPERTY_SCHEME_NAME
,
S_OK
,
TRU
E
},
{
TRUE
,
"http"
,
NULL
,
Uri_PROPERTY_SCHEME_NAME
,
S_OK
,
FALS
E
},
{
TRUE
,
"::192.2.3.4"
,
NULL
,
Uri_PROPERTY_HOST
,
S_OK
,
FALSE
},
{
TRUE
,
NULL
,
NULL
,
Uri_PROPERTY_PATH
,
S_OK
,
FALSE
}
},
...
...
dlls/urlmon/uri.c
View file @
7f6faca6
...
...
@@ -97,6 +97,9 @@ typedef struct {
WCHAR
*
query
;
DWORD
query_len
;
WCHAR
*
scheme
;
DWORD
scheme_len
;
}
UriBuilder
;
typedef
struct
{
...
...
@@ -4328,6 +4331,7 @@ static ULONG WINAPI UriBuilder_Release(IUriBuilder *iface)
heap_free
(
This
->
password
);
heap_free
(
This
->
path
);
heap_free
(
This
->
query
);
heap_free
(
This
->
scheme
);
heap_free
(
This
);
}
...
...
@@ -4535,19 +4539,11 @@ static HRESULT WINAPI UriBuilder_GetSchemeName(IUriBuilder *iface, DWORD *pcchSc
UriBuilder
*
This
=
URIBUILDER_THIS
(
iface
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
pcchSchemeName
,
ppwzSchemeName
);
if
(
!
pcchSchemeName
)
{
if
(
ppwzSchemeName
)
*
ppwzSchemeName
=
NULL
;
return
E_POINTER
;
}
if
(
!
ppwzSchemeName
)
{
*
pcchSchemeName
=
0
;
return
E_POINTER
;
}
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
pcchSchemeName
,
ppwzSchemeName
);
return
E_NOTIMPL
;
if
(
!
This
->
uri
||
This
->
uri
->
scheme_start
==
-
1
||
This
->
modified_props
&
Uri_HAS_SCHEME_NAME
)
return
get_builder_component
(
&
This
->
scheme
,
&
This
->
scheme_len
,
NULL
,
0
,
ppwzSchemeName
,
pcchSchemeName
);
else
return
get_builder_component
(
&
This
->
scheme
,
&
This
->
scheme_len
,
This
->
uri
->
canon_uri
+
This
->
uri
->
scheme_start
,
This
->
uri
->
scheme_len
,
ppwzSchemeName
,
pcchSchemeName
);
}
static
HRESULT
WINAPI
UriBuilder_GetUserName
(
IUriBuilder
*
iface
,
DWORD
*
pcchUserName
,
LPCWSTR
*
ppwzUserName
)
...
...
@@ -4624,8 +4620,9 @@ static HRESULT WINAPI UriBuilder_SetQuery(IUriBuilder *iface, LPCWSTR pwzNewValu
static
HRESULT
WINAPI
UriBuilder_SetSchemeName
(
IUriBuilder
*
iface
,
LPCWSTR
pwzNewValue
)
{
UriBuilder
*
This
=
URIBUILDER_THIS
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwzNewValue
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwzNewValue
));
return
set_builder_component
(
&
This
->
scheme
,
&
This
->
scheme_len
,
pwzNewValue
,
0
,
&
This
->
modified_props
,
Uri_HAS_SCHEME_NAME
);
}
static
HRESULT
WINAPI
UriBuilder_SetUserName
(
IUriBuilder
*
iface
,
LPCWSTR
pwzNewValue
)
...
...
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