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
c4ae3143
Commit
c4ae3143
authored
Oct 21, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IUri in nsIURI::Equals implementation.
parent
f8690a6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
nsio.c
dlls/mshtml/nsio.c
+11
-8
No files found.
dlls/mshtml/nsio.c
View file @
c4ae3143
...
@@ -1971,25 +1971,28 @@ static nsresult NSAPI nsURI_SetPath(nsIURL *iface, const nsACString *aPath)
...
@@ -1971,25 +1971,28 @@ static nsresult NSAPI nsURI_SetPath(nsIURL *iface, const nsACString *aPath)
static
nsresult
NSAPI
nsURI_Equals
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
static
nsresult
NSAPI
nsURI_Equals
(
nsIURL
*
iface
,
nsIURI
*
other
,
PRBool
*
_retval
)
{
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
nsWineURI
*
wine_uri
;
nsWineURI
*
other_obj
;
nsresult
nsres
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
other
,
_retval
);
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
other
,
_retval
);
if
(
This
->
nsuri
)
nsres
=
nsIURI_QueryInterface
(
other
,
&
IID_nsWineURI
,
(
void
**
)
&
other_obj
);
return
nsIURI_Equals
(
This
->
nsuri
,
other
,
_retval
);
nsres
=
nsIURI_QueryInterface
(
other
,
&
IID_nsWineURI
,
(
void
**
)
&
wine_uri
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
TRACE
(
"Could not get nsWineURI interface
\n
"
);
TRACE
(
"Could not get nsWineURI interface
\n
"
);
*
_retval
=
FALSE
;
*
_retval
=
FALSE
;
return
NS_OK
;
return
NS_OK
;
}
}
*
_retval
=
wine_uri
->
wine_url
&&
!
UrlCompareW
(
This
->
wine_url
,
wine_uri
->
wine_url
,
TRUE
);
if
(
ensure_uri
(
This
)
&&
ensure_uri
(
other_obj
))
{
nsIURI_Release
(
NSURI
(
wine_uri
));
hres
=
IUri_IsEqual
(
This
->
uri
,
other_obj
->
uri
,
_retval
);
nsres
=
SUCCEEDED
(
hres
)
?
NS_OK
:
NS_ERROR_FAILURE
;
}
else
{
nsres
=
NS_ERROR_UNEXPECTED
;
}
return
NS_OK
;
nsIURI_Release
(
NSURI
(
other_obj
));
return
nsres
;
}
}
static
nsresult
NSAPI
nsURI_SchemeIs
(
nsIURL
*
iface
,
const
char
*
scheme
,
PRBool
*
_retval
)
static
nsresult
NSAPI
nsURI_SchemeIs
(
nsIURL
*
iface
,
const
char
*
scheme
,
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