From c9b6994648c3cce9d3e590cf6406852471834911 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 18 Oct 2011 05:50:26 +0200 Subject: [PATCH] shlwapi: Fixed bad pointer arithmentic by removing sizeof() (Coverity). --- dlls/shlwapi/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index bcd413c5a8e..d43bea5a791 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -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; -- 2.11.4.GIT