mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
shlwapi: Fixed bad pointer arithmentic by removing sizeof() (Coverity).
This commit is contained in:
parent
b08d4f597a
commit
c9b6994648
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue