Fix some -Wsigned-compare warnings.

This commit is contained in:
Mike McCormack 2004-09-16 19:08:50 +00:00 committed by Alexandre Julliard
parent 2d044dd64b
commit e988fea468
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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);