mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
msctf: Correct handling if NULL for pdimFocus in ITfThreadMgr::SetFocus.
This commit is contained in:
parent
9eca2f81dc
commit
ae51d05d78
@ -389,7 +389,9 @@ static HRESULT WINAPI ThreadMgr_SetFocus( ITfThreadMgr* iface, ITfDocumentMgr *p
|
||||
|
||||
TRACE("(%p) %p\n",This,pdimFocus);
|
||||
|
||||
if (!pdimFocus || FAILED(IUnknown_QueryInterface(pdimFocus,&IID_ITfDocumentMgr,(LPVOID*) &check)))
|
||||
if (!pdimFocus)
|
||||
check = NULL;
|
||||
else if (FAILED(IUnknown_QueryInterface(pdimFocus,&IID_ITfDocumentMgr,(LPVOID*) &check)))
|
||||
return E_INVALIDARG;
|
||||
|
||||
ITfThreadMgrEventSink_OnSetFocus((ITfThreadMgrEventSink*)&This->ThreadMgrEventSinkVtbl, check, This->focus);
|
||||
|
Loading…
Reference in New Issue
Block a user