Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ceab3817
Commit
ceab3817
authored
Aug 18, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIURL::Resolve implementation.
parent
5068249c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsio.c
dlls/mshtml/nsio.c
+31
-5
No files found.
dlls/mshtml/mshtml_private.h
View file @
ceab3817
...
...
@@ -36,6 +36,7 @@
#define NS_OK ((nsresult)0x00000000L)
#define NS_ERROR_FAILURE ((nsresult)0x80004005L)
#define NS_ERROR_OUT_OF_MEMORY ((nsresult)0x8007000EL)
#define NS_NOINTERFACE ((nsresult)0x80004002L)
#define NS_ERROR_NOT_IMPLEMENTED ((nsresult)0x80004001L)
#define NS_ERROR_NOT_AVAILABLE ((nsresult)0x80040111L)
...
...
dlls/mshtml/nsio.c
View file @
ceab3817
...
...
@@ -1925,18 +1925,44 @@ static nsresult NSAPI nsURI_Clone(nsIURL *iface, nsIURI **_retval)
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_Resolve
(
nsIURL
*
iface
,
const
nsACString
*
a
r
elativePath
,
static
nsresult
NSAPI
nsURI_Resolve
(
nsIURL
*
iface
,
const
nsACString
*
a
R
elativePath
,
nsACString
*
_retval
)
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
];
const
char
*
patha
;
WCHAR
*
path
;
char
*
urla
;
DWORD
len
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_nsacstr
(
a
r
elativePath
),
_retval
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_nsacstr
(
a
R
elativePath
),
_retval
);
if
(
This
->
uri
)
return
nsIURI_Resolve
(
This
->
uri
,
a
r
elativePath
,
_retval
);
return
nsIURI_Resolve
(
This
->
uri
,
a
R
elativePath
,
_retval
);
FIXME
(
"default action not implemented
\n
"
);
return
NS_ERROR_NOT_IMPLEMENTED
;
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
);
heap_free
(
path
);
if
(
FAILED
(
hres
))
{
ERR
(
"CoIntenetCombineUrl failed: %08x
\n
"
,
hres
);
return
NS_ERROR_FAILURE
;
}
urla
=
heap_strdupWtoA
(
url
);
if
(
!
urla
)
return
NS_ERROR_OUT_OF_MEMORY
;
TRACE
(
"returning %s
\n
"
,
debugstr_a
(
urla
));
nsACString_SetData
(
_retval
,
urla
);
heap_free
(
urla
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetAsciiSpec
(
nsIURL
*
iface
,
nsACString
*
aAsciiSpec
)
...
...
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