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
2d0ec719
Commit
2d0ec719
authored
Jan 03, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make nsIURI::Resolve implementation IUri-based.
parent
d34bbb2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
nsio.c
dlls/mshtml/nsio.c
+19
-12
No files found.
dlls/mshtml/nsio.c
View file @
2d0ec719
...
...
@@ -2048,36 +2048,43 @@ static nsresult NSAPI nsURI_Resolve(nsIURL *iface, const nsACString *aRelativePa
nsACString
*
_retval
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
];
const
char
*
patha
;
IUri
*
new_uri
;
WCHAR
*
path
;
char
*
url
a
;
DWORD
len
;
char
*
ret
a
;
BSTR
ret
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_nsacstr
(
aRelativePath
),
_retval
);
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
nsACString_GetData
(
aRelativePath
,
&
patha
);
path
=
heap_strdupAtoW
(
patha
);
if
(
!
path
)
return
NS_ERROR_OUT_OF_MEMORY
;
hres
=
CoInternetCombineUrl
(
This
->
wine_url
,
path
,
URL_ESCAPE_SPACES_ONLY
|
URL_DONT_ESCAPE_EXTRA_INFO
,
url
,
sizeof
(
url
)
/
sizeof
(
WCHAR
),
&
len
,
0
);
hres
=
CoInternetCombineUrlEx
(
This
->
uri
,
path
,
URL_ESCAPE_SPACES_ONLY
|
URL_DONT_ESCAPE_EXTRA_INFO
,
&
new_uri
,
0
);
heap_free
(
path
);
if
(
FAILED
(
hres
))
{
ERR
(
"CoIntenetCombineUrl failed: %08x
\n
"
,
hres
);
ERR
(
"CoIntenetCombineUrl
Ex
failed: %08x
\n
"
,
hres
);
return
NS_ERROR_FAILURE
;
}
urla
=
heap_strdupWtoA
(
url
);
if
(
!
urla
)
hres
=
IUri_GetDisplayUri
(
new_uri
,
&
ret
);
IUri_Release
(
new_uri
);
if
(
FAILED
(
hres
))
return
NS_ERROR_FAILURE
;
reta
=
heap_strdupWtoA
(
ret
);
SysFreeString
(
ret
);
if
(
!
reta
)
return
NS_ERROR_OUT_OF_MEMORY
;
TRACE
(
"returning %s
\n
"
,
debugstr_a
(
url
a
));
nsACString_SetData
(
_retval
,
url
a
);
heap_free
(
url
a
);
TRACE
(
"returning %s
\n
"
,
debugstr_a
(
ret
a
));
nsACString_SetData
(
_retval
,
ret
a
);
heap_free
(
ret
a
);
return
NS_OK
;
}
...
...
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