Commit e42d7f95 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

msctf: Fix a possible NULL dereference (Coverity).

parent b3e4155a
...@@ -349,11 +349,13 @@ HRESULT Range_Constructor(ITfContext *context, ITextStoreACP *textstore, DWORD l ...@@ -349,11 +349,13 @@ HRESULT Range_Constructor(ITfContext *context, ITextStoreACP *textstore, DWORD l
HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp) HRESULT TF_SELECTION_to_TS_SELECTION_ACP(const TF_SELECTION *tf, TS_SELECTION_ACP *tsAcp)
{ {
Range *This = (Range *)tf->range; Range *This;
if (!tf || !tsAcp || !tf->range) if (!tf || !tsAcp || !tf->range)
return E_INVALIDARG; return E_INVALIDARG;
This = (Range *)tf->range;
tsAcp->acpStart = This->anchorStart; tsAcp->acpStart = This->anchorStart;
tsAcp->acpEnd = This->anchorEnd; tsAcp->acpEnd = This->anchorEnd;
tsAcp->style.ase = tf->style.ase; tsAcp->style.ase = tf->style.ase;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment