shlwapi: Sign-compare warnings fix.
This commit is contained in:
parent
974b8d802c
commit
ba1e2660e8
|
@ -803,7 +803,7 @@ static HRESULT WINAPI IQueryAssociations_fnGetString(
|
||||||
goto get_friendly_name_fail;
|
goto get_friendly_name_fail;
|
||||||
if (VerQueryValueW(verinfoW, translationW, (LPVOID *)&bufW, &flen))
|
if (VerQueryValueW(verinfoW, translationW, (LPVOID *)&bufW, &flen))
|
||||||
{
|
{
|
||||||
int i;
|
UINT i;
|
||||||
DWORD *langCodeDesc = (DWORD *)bufW;
|
DWORD *langCodeDesc = (DWORD *)bufW;
|
||||||
for (i = 0; i < flen / sizeof(DWORD); i++)
|
for (i = 0; i < flen / sizeof(DWORD); i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -118,7 +118,7 @@ static const unsigned char HashDataLookup[256] = {
|
||||||
|
|
||||||
static DWORD get_scheme_code(LPCWSTR scheme, DWORD scheme_len)
|
static DWORD get_scheme_code(LPCWSTR scheme, DWORD scheme_len)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for(i=0; i < sizeof(shlwapi_schemes)/sizeof(shlwapi_schemes[0]); i++) {
|
for(i=0; i < sizeof(shlwapi_schemes)/sizeof(shlwapi_schemes[0]); i++) {
|
||||||
if(scheme_len == strlenW(shlwapi_schemes[i].scheme_name)
|
if(scheme_len == strlenW(shlwapi_schemes[i].scheme_name)
|
||||||
|
@ -314,8 +314,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, mp2, root;
|
LPWSTR lpszUrlCpy, wk1, wk2, mp, mp2, root;
|
||||||
INT nByteLen, state;
|
INT state;
|
||||||
DWORD nLen, nWkLen;
|
DWORD nByteLen, nLen, nWkLen;
|
||||||
WCHAR slash = '/';
|
WCHAR slash = '/';
|
||||||
|
|
||||||
static const WCHAR wszFile[] = {'f','i','l','e',':'};
|
static const WCHAR wszFile[] = {'f','i','l','e',':'};
|
||||||
|
@ -332,7 +332,7 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
nByteLen = (lstrlenW(pszUrl) + 1) * sizeof(WCHAR); /* length in bytes */
|
nByteLen = (strlenW(pszUrl) + 1) * sizeof(WCHAR); /* length in bytes */
|
||||||
lpszUrlCpy = HeapAlloc(GetProcessHeap(), 0,
|
lpszUrlCpy = HeapAlloc(GetProcessHeap(), 0,
|
||||||
INTERNET_MAX_URL_LENGTH * sizeof(WCHAR));
|
INTERNET_MAX_URL_LENGTH * sizeof(WCHAR));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue