From 95100a6e92f428b74d8bbba7c08aac8f163ced11 Mon Sep 17 00:00:00 2001 From: Mikhail Maroukhine <mikolg@yandex.ru> Date: Sun, 28 Mar 2010 15:26:11 +0700 Subject: [PATCH] shlwapi: Fix compiler warnings with flag -Wcast-qual. --- dlls/shlwapi/url.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 4d064b69406..d6487b34bd9 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -278,7 +278,8 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized, { HRESULT hr = S_OK; DWORD EscapeFlags; - LPWSTR lpszUrlCpy, wk1, wk2, mp, mp2, root; + LPCWSTR wk1, root; + LPWSTR lpszUrlCpy, wk2, mp, mp2; INT state; DWORD nByteLen, nLen, nWkLen; WCHAR slash = '/'; @@ -322,7 +323,7 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized, * 6 have location (found /) save root location */ - wk1 = (LPWSTR)pszUrl; + wk1 = pszUrl; wk2 = lpszUrlCpy; state = 0; -- GitLab