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
7c42bfe1
Commit
7c42bfe1
authored
Sep 26, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: UrlIs()'s check for the 'file:' protocol is case insensitive.
parent
7fcf7e83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
url.c
dlls/shlwapi/tests/url.c
+2
-1
url.c
dlls/shlwapi/url.c
+5
-3
No files found.
dlls/shlwapi/tests/url.c
View file @
7c42bfe1
...
...
@@ -450,7 +450,8 @@ static const struct {
{
"file://e:/b/c"
,
FALSE
,
TRUE
},
{
"http:partial"
,
FALSE
,
FALSE
},
{
"mailto://www.winehq.org/test.html"
,
TRUE
,
FALSE
},
{
"file:partial"
,
FALSE
,
TRUE
}
{
"file:partial"
,
FALSE
,
TRUE
},
{
"File:partial"
,
FALSE
,
TRUE
},
};
/* ########################### */
...
...
dlls/shlwapi/url.c
View file @
7c42bfe1
...
...
@@ -1864,7 +1864,8 @@ BOOL WINAPI UrlIsA(LPCSTR pszUrl, URLIS Urlis)
return
FALSE
;
case
URLIS_FILEURL
:
return
!
StrCmpNA
(
"file:"
,
pszUrl
,
5
);
return
(
CompareStringA
(
LOCALE_INVARIANT
,
NORM_IGNORECASE
,
pszUrl
,
5
,
"file:"
,
5
)
==
CSTR_EQUAL
);
case
URLIS_DIRECTORY
:
last
=
pszUrl
+
strlen
(
pszUrl
)
-
1
;
...
...
@@ -1889,7 +1890,7 @@ BOOL WINAPI UrlIsA(LPCSTR pszUrl, URLIS Urlis)
*/
BOOL
WINAPI
UrlIsW
(
LPCWSTR
pszUrl
,
URLIS
Urlis
)
{
static
const
WCHAR
stemp
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
0
};
static
const
WCHAR
file_colon
[]
=
{
'f'
,
'i'
,
'l'
,
'e'
,
':'
,
0
};
PARSEDURLW
base
;
DWORD
res1
;
LPCWSTR
last
;
...
...
@@ -1917,7 +1918,8 @@ BOOL WINAPI UrlIsW(LPCWSTR pszUrl, URLIS Urlis)
return
FALSE
;
case
URLIS_FILEURL
:
return
!
strncmpW
(
stemp
,
pszUrl
,
5
);
return
(
CompareStringW
(
LOCALE_INVARIANT
,
NORM_IGNORECASE
,
pszUrl
,
5
,
file_colon
,
5
)
==
CSTR_EQUAL
);
case
URLIS_DIRECTORY
:
last
=
pszUrl
+
strlenW
(
pszUrl
)
-
1
;
...
...
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