imm32: Add the all GCS_* value check.

This commit is contained in:
ByeongSik Jeon 2008-05-09 21:28:04 +09:00 committed by Alexandre Julliard
parent 6e74a865e3
commit 33a5ab522f
1 changed files with 74 additions and 0 deletions

View File

@ -1054,6 +1054,48 @@ LONG WINAPI ImmGetCompositionStringA(
TRACE("GCS_RESULTCLAUSE %p %i\n", buffer, rc);
}
break;
case GCS_RESULTREADSTR:
if (compstr->dwResultReadStrLen > 0 && compstr->dwResultReadStrOffset > 0)
{
isString = TRUE;
buffer = compdata + compstr->dwResultReadStrOffset;
rc = compstr->dwResultReadStrLen;
TRACE("GCS_RESULTREADSTR %p %i\n",buffer, rc);
}
break;
case GCS_RESULTREADCLAUSE:
if (compstr->dwResultReadClauseLen > 0 && compstr->dwResultReadClauseOffset > 0)
{
buffer = compdata + compstr->dwResultReadClauseOffset;
rc = compstr->dwResultReadClauseLen;
TRACE("GCS_RESULTREADCLAUSE %p %i\n", buffer, rc);
}
break;
case GCS_COMPREADSTR:
if (compstr->dwCompReadStrLen > 0 && compstr->dwCompReadStrOffset > 0)
{
isString = TRUE;
buffer = compdata + compstr->dwCompReadStrOffset;
rc = compstr->dwCompReadStrLen;
TRACE("GCS_COMPREADSTR %p %i\n", buffer, rc);
}
break;
case GCS_COMPREADATTR:
if (compstr->dwCompReadAttrLen > 0 && compstr->dwCompReadAttrOffset > 0)
{
buffer = compdata + compstr->dwCompReadAttrOffset;
rc = compstr->dwCompReadAttrLen;
TRACE("GCS_COMPREADATTR %p %i\n", buffer, rc);
}
break;
case GCS_COMPREADCLAUSE:
if (compstr->dwCompReadClauseLen > 0 && compstr->dwCompReadClauseOffset > 0)
{
buffer = compdata + compstr->dwCompReadClauseOffset;
rc = compstr->dwCompReadClauseLen;
TRACE("GCS_COMPREADCLAUSE %p %i\n", buffer, rc);
}
break;
case GCS_CURSORPOS:
TRACE("GCS_CURSORPOS\n");
rc = compstr->dwCursorPos;
@ -1165,6 +1207,38 @@ LONG WINAPI ImmGetCompositionStringW(
TRACE("GCS_COMPREADSTR %p %i\n", buffer, rc);
}
break;
case GCS_COMPREADATTR:
if (compstr->dwCompReadAttrLen > 0 && compstr->dwCompReadAttrOffset > 0)
{
buffer = compdata + compstr->dwCompReadAttrOffset;
rc = compstr->dwCompReadAttrLen;
TRACE("GCS_COMPREADATTR %p %i\n", buffer, rc);
}
break;
case GCS_COMPREADCLAUSE:
if (compstr->dwCompReadClauseLen > 0 && compstr->dwCompReadClauseOffset > 0)
{
buffer = compdata + compstr->dwCompReadClauseOffset;
rc = compstr->dwCompReadClauseLen;
TRACE("GCS_COMPREADCLAUSE %p %i\n", buffer, rc);
}
break;
case GCS_RESULTREADCLAUSE:
if (compstr->dwResultReadClauseLen > 0 && compstr->dwResultReadClauseOffset > 0)
{
buffer = compdata + compstr->dwResultReadClauseOffset;
rc = compstr->dwResultReadClauseLen;
TRACE("GCS_RESULTREADCLAUSE %p %i\n", buffer, rc);
}
break;
case GCS_RESULTCLAUSE:
if (compstr->dwResultClauseLen > 0 && compstr->dwResultClauseOffset > 0)
{
buffer = compdata + compstr->dwResultClauseOffset;
rc = compstr->dwResultClauseLen;
TRACE("GCS_RESULTCLAUSE %p %i\n", buffer, rc);
}
break;
case GCS_CURSORPOS:
TRACE("GCS_CURSORPOS\n");
rc = compstr->dwCursorPos;