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
23e312e3
Commit
23e312e3
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: set_builder_component now handles setting the modified property flag.
parent
398e6494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
uri.c
dlls/urlmon/uri.c
+12
-13
No files found.
dlls/urlmon/uri.c
View file @
23e312e3
...
...
@@ -3292,9 +3292,11 @@ static HRESULT get_builder_component(LPWSTR *component, DWORD *component_len,
/* Allocates 'component' and copies the string from 'new_value' into 'component'.
* If 'prefix' is set and 'new_value' isn't NULL, then it checks if 'new_value'
* starts with 'prefix'. If it doesn't then 'prefix' is prepended to 'component'.
*
* If everything is successful, then will set 'success_flag' in 'flags'.
*/
static
HRESULT
set_builder_component
(
LPWSTR
*
component
,
DWORD
*
component_len
,
LPCWSTR
new_value
,
WCHAR
prefix
)
WCHAR
prefix
,
DWORD
*
flags
,
DWORD
success_flag
)
{
if
(
*
component
)
heap_free
(
*
component
);
...
...
@@ -3323,6 +3325,7 @@ static HRESULT set_builder_component(LPWSTR *component, DWORD *component_len, LP
*
component_len
=
len
+
pos
;
}
*
flags
|=
success_flag
;
return
S_OK
;
}
...
...
@@ -4571,36 +4574,32 @@ static HRESULT WINAPI UriBuilder_SetFragment(IUriBuilder *iface, LPCWSTR pwzNewV
{
UriBuilder
*
This
=
URIBUILDER_THIS
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwzNewValue
));
This
->
modified_props
|=
Uri_HAS_FRAGMENT
;
return
set_builder_component
(
&
This
->
fragment
,
&
This
->
fragment_len
,
pwzNewValue
,
'#'
);
return
set_builder_component
(
&
This
->
fragment
,
&
This
->
fragment_len
,
pwzNewValue
,
'#'
,
&
This
->
modified_props
,
Uri_HAS_FRAGMENT
);
}
static
HRESULT
WINAPI
UriBuilder_SetHost
(
IUriBuilder
*
iface
,
LPCWSTR
pwzNewValue
)
{
UriBuilder
*
This
=
URIBUILDER_THIS
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwzNewValue
));
This
->
modified_props
|=
Uri_HAS_HOST
;
return
set_builder_component
(
&
This
->
host
,
&
This
->
host_len
,
pwzNewValue
,
0
);
return
set_builder_component
(
&
This
->
host
,
&
This
->
host_len
,
pwzNewValue
,
0
,
&
This
->
modified_props
,
Uri_HAS_HOST
);
}
static
HRESULT
WINAPI
UriBuilder_SetPassword
(
IUriBuilder
*
iface
,
LPCWSTR
pwzNewValue
)
{
UriBuilder
*
This
=
URIBUILDER_THIS
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwzNewValue
));
This
->
modified_props
|=
Uri_HAS_PASSWORD
;
return
set_builder_component
(
&
This
->
password
,
&
This
->
password_len
,
pwzNewValue
,
0
);
return
set_builder_component
(
&
This
->
password
,
&
This
->
password_len
,
pwzNewValue
,
0
,
&
This
->
modified_props
,
Uri_HAS_PASSWORD
);
}
static
HRESULT
WINAPI
UriBuilder_SetPath
(
IUriBuilder
*
iface
,
LPCWSTR
pwzNewValue
)
{
UriBuilder
*
This
=
URIBUILDER_THIS
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
pwzNewValue
));
This
->
modified_props
|=
Uri_HAS_PATH
;
return
set_builder_component
(
&
This
->
path
,
&
This
->
path_len
,
pwzNewValue
,
0
);
return
set_builder_component
(
&
This
->
path
,
&
This
->
path_len
,
pwzNewValue
,
0
,
&
This
->
modified_props
,
Uri_HAS_PATH
);
}
static
HRESULT
WINAPI
UriBuilder_SetPort
(
IUriBuilder
*
iface
,
BOOL
fHasPort
,
DWORD
dwNewValue
)
...
...
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