mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[IMM32] s/4/sizeof(DWORD)/
CORE-11700
This commit is contained in:
parent
6b5ffa7a79
commit
b0d66e68c1
3 changed files with 7 additions and 7 deletions
|
@ -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 | \
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue