mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
msctf: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
78d9ee8a1a
commit
1a1577d791
4 changed files with 8 additions and 8 deletions
|
@ -241,7 +241,7 @@ static HRESULT WINAPI CategoryMgr_FindClosestCategory ( ITfCategoryMgr *iface,
|
|||
|
||||
if (ulCount)
|
||||
{
|
||||
int j;
|
||||
ULONG j;
|
||||
BOOL found = FALSE;
|
||||
for (j = 0; j < ulCount; j++)
|
||||
if (IsEqualGUID(&guid, ppcatidList[j]))
|
||||
|
|
|
@ -369,7 +369,7 @@ static HRESULT WINAPI Context_SetSelection (ITfContext *iface,
|
|||
{
|
||||
TS_SELECTION_ACP *acp;
|
||||
Context *This = (Context *)iface;
|
||||
INT i;
|
||||
ULONG i;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("(%p) %i %i %p\n",This,ec,ulCount,pSelection);
|
||||
|
|
|
@ -198,7 +198,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
|
|||
*/
|
||||
DWORD generate_Cookie(DWORD magic, LPVOID data)
|
||||
{
|
||||
int i;
|
||||
UINT i;
|
||||
|
||||
/* try to reuse IDs if possible */
|
||||
for (i = 0; i < id_last; i++)
|
||||
|
@ -282,7 +282,7 @@ LPVOID remove_Cookie(DWORD id)
|
|||
|
||||
DWORD enumerate_Cookie(DWORD magic, DWORD *index)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
for (i = *index; i < id_last; i++)
|
||||
if (cookies[i].id != 0 && cookies[i].magic == magic)
|
||||
{
|
||||
|
@ -614,12 +614,12 @@ HRESULT WINAPI SetInputScopes(HWND hwnd, const INT *pInputScopes,
|
|||
UINT cInputScopes, WCHAR **ppszPhraseList,
|
||||
UINT cPhrases, WCHAR *pszRegExp, WCHAR *pszSRGS)
|
||||
{
|
||||
int i;
|
||||
UINT i;
|
||||
FIXME("STUB: %p ... %s %s\n",hwnd, debugstr_w(pszRegExp), debugstr_w(pszSRGS));
|
||||
for (i = 0; i < cInputScopes; i++)
|
||||
TRACE("\tScope[%i] = %i\n",i,pInputScopes[i]);
|
||||
TRACE("\tScope[%u] = %i\n",i,pInputScopes[i]);
|
||||
for (i = 0; i < cPhrases; i++)
|
||||
TRACE("\tPhrase[%i] = %s\n",i,debugstr_w(ppszPhraseList[i]));
|
||||
TRACE("\tPhrase[%u] = %s\n",i,debugstr_w(ppszPhraseList[i]));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -1392,7 +1392,7 @@ static HRESULT WINAPI EnumTfDocumentMgr_Next(IEnumTfDocumentMgrs *iface,
|
|||
|
||||
static HRESULT WINAPI EnumTfDocumentMgr_Skip( IEnumTfDocumentMgrs* iface, ULONG celt)
|
||||
{
|
||||
INT i;
|
||||
ULONG i;
|
||||
EnumTfDocumentMgr *This = (EnumTfDocumentMgr *)iface;
|
||||
TRACE("(%p)\n",This);
|
||||
for(i = 0; i < celt && This->index != NULL; i++)
|
||||
|
|
Loading…
Reference in a new issue