[IMM32] s/4/sizeof(DWORD)/

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2021-10-05 07:57:14 +09:00
parent 6b5ffa7a79
commit b0d66e68c1
3 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ BOOL APIENTRY Imm32InquireIme(PIMEDPI pImeDpi)
szUIClass[_countof(szUIClass) - 1] = 0;
if (pImeInfo->dwPrivateDataSize == 0)
pImeInfo->dwPrivateDataSize = 4;
pImeInfo->dwPrivateDataSize = sizeof(DWORD);
#define VALID_IME_PROP (IME_PROP_AT_CARET | \
IME_PROP_SPECIAL_UI | \

View file

@ -202,14 +202,14 @@ VOID APIENTRY Imm32SelectLayout(HKL hNewKL, HKL hOldKL, HIMC hIMC)
pClientImc->uCodePage = CP_ACP;
}
if (cbNewPrivate < 4)
cbNewPrivate = 4;
if (cbNewPrivate < sizeof(DWORD))
cbNewPrivate = sizeof(DWORD);
if (pOldImeDpi)
cbOldPrivate = pOldImeDpi->ImeInfo.dwPrivateDataSize;
if (cbOldPrivate < 4)
cbOldPrivate = 4;
if (cbOldPrivate < sizeof(DWORD))
cbOldPrivate = sizeof(DWORD);
if (pClientImc->hKL == hOldKL)
{

View file

@ -341,8 +341,8 @@ BOOL WINAPI CtfImmIsTextFrameServiceDisabled(VOID)
*/
HIMCC WINAPI ImmCreateIMCC(DWORD size)
{
if (size < 4)
size = 4;
if (size < sizeof(DWORD))
size = sizeof(DWORD);
return LocalAlloc(LHND, size);
}