Fix some -Wsigned-compare warnings.
This commit is contained in:
parent
2d044dd64b
commit
e988fea468
|
@ -576,8 +576,8 @@ HRESULT WINAPI GetAcceptLanguagesW( LPWSTR langbuf, LPDWORD buflen)
|
||||||
}
|
}
|
||||||
memcpy( langbuf, mystr, min(*buflen,strlenW(mystr)+1)*sizeof(WCHAR) );
|
memcpy( langbuf, mystr, min(*buflen,strlenW(mystr)+1)*sizeof(WCHAR) );
|
||||||
|
|
||||||
if(*buflen > lstrlenW(mystr)) {
|
if(*buflen > strlenW(mystr)) {
|
||||||
*buflen = lstrlenW(mystr);
|
*buflen = strlenW(mystr);
|
||||||
retval = S_OK;
|
retval = S_OK;
|
||||||
} else {
|
} else {
|
||||||
*buflen = 0;
|
*buflen = 0;
|
||||||
|
|
|
@ -459,7 +459,8 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
DWORD EscapeFlags;
|
DWORD EscapeFlags;
|
||||||
LPWSTR lpszUrlCpy, wk1, wk2, mp, root;
|
LPWSTR lpszUrlCpy, wk1, wk2, mp, root;
|
||||||
INT nLen, nByteLen, state;
|
INT nByteLen, state;
|
||||||
|
DWORD nLen;
|
||||||
|
|
||||||
TRACE("(%s %p %p 0x%08lx)\n", debugstr_w(pszUrl), pszCanonicalized,
|
TRACE("(%s %p %p 0x%08lx)\n", debugstr_w(pszUrl), pszCanonicalized,
|
||||||
pcchCanonicalized, dwFlags);
|
pcchCanonicalized, dwFlags);
|
||||||
|
|
Loading…
Reference in New Issue