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
13216442
Commit
13216442
authored
Nov 18, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fix invalid usage of CompareString in PathCreateFromUrlW.
parent
e2c06949
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
path.c
dlls/shlwapi/path.c
+5
-3
No files found.
dlls/shlwapi/path.c
View file @
13216442
...
...
@@ -3313,6 +3313,9 @@ HRESULT WINAPI PathCreateFromUrlW(LPCWSTR pszUrl, LPWSTR pszPath,
if
(
!
pszUrl
||
!
pszPath
||
!
pcchPath
||
!*
pcchPath
)
return
E_INVALIDARG
;
if
(
lstrlenW
(
pszUrl
)
<
5
)
return
E_INVALIDARG
;
if
(
CompareStringW
(
LOCALE_INVARIANT
,
NORM_IGNORECASE
,
pszUrl
,
5
,
file_colon
,
5
)
!=
CSTR_EQUAL
)
return
E_INVALIDARG
;
...
...
@@ -3354,9 +3357,8 @@ HRESULT WINAPI PathCreateFromUrlW(LPCWSTR pszUrl, LPWSTR pszPath,
src
-=
1
;
break
;
case
2
:
if
(
CompareStringW
(
LOCALE_INVARIANT
,
NORM_IGNORECASE
,
src
,
9
,
localhost
,
9
)
==
CSTR_EQUAL
&&
(
src
[
9
]
==
'/'
||
src
[
9
]
==
'\\'
))
if
(
lstrlenW
(
src
)
>=
10
&&
CompareStringW
(
LOCALE_INVARIANT
,
NORM_IGNORECASE
,
src
,
9
,
localhost
,
9
)
==
CSTR_EQUAL
&&
(
src
[
9
]
==
'/'
||
src
[
9
]
==
'\\'
))
{
/* 'file://localhost/' + escaped DOS path */
src
+=
10
;
...
...
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