msctf: Avoid implicit enum casts.

This commit is contained in:
Jacek Caban 2023-10-24 19:43:39 +02:00 committed by Alexandre Julliard
parent 1ee2681394
commit 0d554fee41
2 changed files with 2 additions and 2 deletions

View file

@ -305,7 +305,7 @@ static HRESULT WINAPI Context_GetSelection (ITfContext *iface,
return TF_E_NOLOCK;
else if (SUCCEEDED(hr))
{
pSelection[totalFetched].style.ase = acps.style.ase;
pSelection[totalFetched].style.ase = (TfActiveSelEnd)acps.style.ase;
pSelection[totalFetched].style.fInterimChar = acps.style.fInterimChar;
Range_Constructor(iface, acps.acpStart, acps.acpEnd, &pSelection[totalFetched].range);
totalFetched ++;

View file

@ -362,7 +362,7 @@ HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_AC
tsAcp->acpStart = This->anchorStart;
tsAcp->acpEnd = This->anchorEnd;
tsAcp->style.ase = tf->style.ase;
tsAcp->style.ase = (TsActiveSelEnd)tf->style.ase;
tsAcp->style.fInterimChar = tf->style.fInterimChar;
return S_OK;
}