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
5030554c
Commit
5030554c
authored
Nov 25, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use wine_url in nsIURI::SchemeIs implementation.
parent
28624903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
nsio.c
dlls/mshtml/nsio.c
+10
-5
No files found.
dlls/mshtml/nsio.c
View file @
5030554c
...
...
@@ -2037,15 +2037,20 @@ static nsresult NSAPI nsURI_SchemeIs(nsIURL *iface, const char *scheme, PRBool *
{
nsWineURI
*
This
=
NSURI_THIS
(
iface
);
WCHAR
buf
[
INTERNET_MAX_SCHEME_LENGTH
];
int
len
;
BSTR
scheme_name
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_a
(
scheme
),
_retval
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
scheme
,
-
1
,
buf
,
sizeof
(
buf
)
/
sizeof
(
WCHAR
))
-
1
;
if
(
!
ensure_uri
(
This
))
return
NS_ERROR_UNEXPECTED
;
hres
=
IUri_GetSchemeName
(
This
->
uri
,
&
scheme_name
);
if
(
FAILED
(
hres
))
return
NS_ERROR_UNEXPECTED
;
*
_retval
=
lstrlenW
(
This
->
wine_url
)
>
len
&&
This
->
wine_url
[
len
]
==
':'
&&
!
memcmp
(
buf
,
This
->
wine_url
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
scheme
,
-
1
,
buf
,
sizeof
(
buf
)
/
sizeof
(
WCHAR
));
*
_retval
=
!
strcmpW
(
scheme_name
,
buf
);
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