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
3f383bac
Commit
3f383bac
authored
Nov 14, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IUriBuilder for nsIURI::SetPath implementation.
parent
e2111518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
20 deletions
+15
-20
nsio.c
dlls/mshtml/nsio.c
+15
-20
No files found.
dlls/mshtml/nsio.c
View file @
3f383bac
...
...
@@ -1986,32 +1986,27 @@ static nsresult NSAPI nsURI_GetPath(nsIURL *iface, nsACString *aPath)
static
nsresult
NSAPI
nsURI_SetPath
(
nsIURL
*
iface
,
const
nsACString
*
aPath
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
const
char
*
path
;
const
char
*
patha
;
WCHAR
*
path
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aPath
));
invalidate_uri
(
This
);
nsACString_GetData
(
aPath
,
&
path
);
if
(
This
->
wine_url
)
{
WCHAR
new_url
[
INTERNET_MAX_URL_LENGTH
];
DWORD
size
=
sizeof
(
new_url
)
/
sizeof
(
WCHAR
);
LPWSTR
pathw
;
HRESULT
hres
;
if
(
!
ensure_uri_builder
(
This
))
return
NS_ERROR_UNEXPECTED
;
pathw
=
heap_strdupAtoW
(
path
);
hres
=
UrlCombineW
(
This
->
wine_url
,
pathw
,
new_url
,
&
size
,
0
);
heap_free
(
pathw
);
if
(
SUCCEEDED
(
hres
))
set_wine_url
(
This
,
new_url
);
else
WARN
(
"UrlCombine failed: %08x
\n
"
,
hres
);
}
nsACString_GetData
(
aPath
,
&
patha
);
path
=
heap_strdupAtoW
(
patha
);
if
(
!
path
)
return
NS_ERROR_OUT_OF_MEMORY
;
if
(
!
This
->
nsuri
)
return
NS_OK
;
hres
=
IUriBuilder_SetPath
(
This
->
uri_builder
,
path
);
heap_free
(
path
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
return
nsIURI_SetPath
(
This
->
nsuri
,
aPath
);
sync_wine_url
(
This
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_Equals
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
...
...
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