Module: wine Branch: master Commit: 95100a6e92f428b74d8bbba7c08aac8f163ced11 URL: http://source.winehq.org/git/wine.git/?a=commit;h=95100a6e92f428b74d8bbba7c0...
Author: Mikhail Maroukhine mikolg@yandex.ru Date: Sun Mar 28 15:26:11 2010 +0700
shlwapi: Fix compiler warnings with flag -Wcast-qual.
---
dlls/shlwapi/url.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 4d064b6..d6487b3 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;