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
c9b69946
Commit
c9b69946
authored
Oct 18, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Fixed bad pointer arithmentic by removing sizeof() (Coverity).
parent
b08d4f59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
url.c
dlls/shlwapi/url.c
+2
-2
No files found.
dlls/shlwapi/url.c
View file @
c9b69946
...
...
@@ -744,7 +744,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
if
(
base
.
nScheme
==
URL_SCHEME_HTTP
||
base
.
nScheme
==
URL_SCHEME_HTTPS
)
manual_search
=
TRUE
;
else
if
(
work
-
base
.
pszSuffix
>
len_htmW
*
sizeof
(
WCHAR
)
)
{
else
if
(
work
-
base
.
pszSuffix
>
len_htmW
)
{
work
-=
len_htmW
;
if
(
strncmpiW
(
work
,
htmW
,
len_htmW
)
==
0
)
manual_search
=
TRUE
;
...
...
@@ -752,7 +752,7 @@ HRESULT WINAPI UrlCombineW(LPCWSTR pszBase, LPCWSTR pszRelative,
}
if
(
!
manual_search
&&
work
-
base
.
pszSuffix
>
len_htmlW
*
sizeof
(
WCHAR
)
)
{
work
-
base
.
pszSuffix
>
len_htmlW
)
{
work
-=
len_htmlW
;
if
(
strncmpiW
(
work
,
htmlW
,
len_htmlW
)
==
0
)
manual_search
=
TRUE
;
...
...
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