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
5c8c46db
Commit
5c8c46db
authored
Dec 29, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Reorder nsIURL functions to match vtbl order.
parent
98b8ebaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
51 deletions
+51
-51
nsio.c
dlls/mshtml/nsio.c
+51
-51
No files found.
dlls/mshtml/nsio.c
View file @
5c8c46db
...
...
@@ -2174,57 +2174,6 @@ static nsresult NSAPI nsURI_SetPath(nsIURL *iface, const nsACString *aPath)
return
NS_OK
;
}
static
nsresult
NSAPI
nsURL_GetRef
(
nsIURL
*
iface
,
nsACString
*
aRef
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
char
*
refa
=
NULL
;
BSTR
ref
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aRef
);
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
hres
=
IUri_GetFragment
(
This
->
uri
,
&
ref
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
refa
=
heap_strdupWtoA
(
ref
);
SysFreeString
(
ref
);
if
(
ref
&&
!
refa
)
return
NS_ERROR_OUT_OF_MEMORY
;
nsACString_SetData
(
aRef
,
refa
&&
*
refa
==
'#'
?
refa
+
1
:
refa
);
heap_free
(
refa
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURL_SetRef
(
nsIURL
*
iface
,
const
nsACString
*
aRef
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
const
char
*
refa
;
WCHAR
*
ref
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aRef
));
if
(
!
ensure_uri_builder
(
This
))
return
NS_ERROR_UNEXPECTED
;
nsACString_GetData
(
aRef
,
&
refa
);
ref
=
heap_strdupAtoW
(
refa
);
if
(
!
ref
)
return
NS_ERROR_OUT_OF_MEMORY
;
hres
=
IUriBuilder_SetFragment
(
This
->
uri_builder
,
ref
);
heap_free
(
ref
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_Equals
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
...
...
@@ -2386,6 +2335,57 @@ static nsresult NSAPI nsURI_GetOriginCharset(nsIURL *iface, nsACString *aOriginC
return
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURL_GetRef
(
nsIURL
*
iface
,
nsACString
*
aRef
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
char
*
refa
=
NULL
;
BSTR
ref
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aRef
);
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
hres
=
IUri_GetFragment
(
This
->
uri
,
&
ref
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
refa
=
heap_strdupWtoA
(
ref
);
SysFreeString
(
ref
);
if
(
ref
&&
!
refa
)
return
NS_ERROR_OUT_OF_MEMORY
;
nsACString_SetData
(
aRef
,
refa
&&
*
refa
==
'#'
?
refa
+
1
:
refa
);
heap_free
(
refa
);
return
NS_OK
;
}
static
nsresult
NSAPI
nsURL_SetRef
(
nsIURL
*
iface
,
const
nsACString
*
aRef
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
const
char
*
refa
;
WCHAR
*
ref
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_nsacstr
(
aRef
));
if
(
!
ensure_uri_builder
(
This
))
return
NS_ERROR_UNEXPECTED
;
nsACString_GetData
(
aRef
,
&
refa
);
ref
=
heap_strdupAtoW
(
refa
);
if
(
!
ref
)
return
NS_ERROR_OUT_OF_MEMORY
;
hres
=
IUriBuilder_SetFragment
(
This
->
uri_builder
,
ref
);
heap_free
(
ref
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_EqualsExceptRef
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
{
nsWineURI
*
This
=
impl_from_nsIURL
(
iface
);
...
...
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