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
5ea16d78
Commit
5ea16d78
authored
Feb 09, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added [Set|Get]WineURL functions to nsIWineURI.
parent
8beb142b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
nsiface.idl
dlls/mshtml/nsiface.idl
+2
-0
nsio.c
dlls/mshtml/nsio.c
+32
-1
No files found.
dlls/mshtml/nsiface.idl
View file @
5ea16d78
...
...
@@ -1533,4 +1533,6 @@ interface nsIWineURI : nsIURI
nsresult SetMoniker(IMoniker *aMoniker);
nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
nsresult GetWineURL(LPCWSTR *aURL);
nsresult SetWineURL(LPCWSTR aURL);
}
dlls/mshtml/nsio.c
View file @
5ea16d78
...
...
@@ -1616,6 +1616,35 @@ static nsresult NSAPI nsURI_SetIsDocumentURI(nsIWineURI *iface, PRBool aIsDocume
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetWineURL
(
nsIWineURI
*
iface
,
LPCWSTR
*
aURL
)
{
nsURI
*
This
=
NSURI_THIS
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aURL
);
*
aURL
=
This
->
wine_url
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_SetWineURL
(
nsIWineURI
*
iface
,
LPCWSTR
aURL
)
{
nsURI
*
This
=
NSURI_THIS
(
iface
);
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
aURL
));
mshtml_free
(
This
->
wine_url
);
if
(
aURL
)
{
int
len
=
strlenW
(
aURL
)
+
1
;
This
->
wine_url
=
mshtml_alloc
(
len
*
sizeof
(
WCHAR
));
memcpy
(
This
->
wine_url
,
aURL
,
len
*
sizeof
(
WCHAR
));
}
else
{
This
->
wine_url
=
NULL
;
}
return
NS_OK
;
}
#undef NSURI_THIS
static
const
nsIWineURIVtbl
nsWineURIVtbl
=
{
...
...
@@ -1653,7 +1682,9 @@ static const nsIWineURIVtbl nsWineURIVtbl = {
nsURI_GetMoniker
,
nsURI_SetMoniker
,
nsURI_GetIsDocumentURI
,
nsURI_SetIsDocumentURI
nsURI_SetIsDocumentURI
,
nsURI_GetWineURL
,
nsURI_SetWineURL
};
static
nsresult
create_uri
(
nsIURI
*
uri
,
NSContainer
*
container
,
nsIURI
**
_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