msctf: Set fActive directly in ActivateLanguageProfile() (Coverity).
This commit is contained in:
parent
55e3a03ba3
commit
d4bbcc44cb
|
@ -549,10 +549,9 @@ static HRESULT WINAPI InputProcessorProfiles_ActivateLanguageProfile(
|
|||
LanguageProfile.clsid = *rclsid;
|
||||
LanguageProfile.langid = langid;
|
||||
LanguageProfile.guidProfile = *guidProfiles;
|
||||
LanguageProfile.fActive = TRUE;
|
||||
|
||||
hr = add_active_textservice(&LanguageProfile);
|
||||
|
||||
return hr;
|
||||
return add_active_textservice(&LanguageProfile);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI InputProcessorProfiles_GetActiveLanguageProfile(
|
||||
|
|
|
@ -371,7 +371,6 @@ HRESULT add_active_textservice(TF_LANGUAGEPROFILE *lp)
|
|||
|
||||
actsvr->pITfTextInputProcessor = NULL;
|
||||
actsvr->LanguageProfile = *lp;
|
||||
actsvr->LanguageProfile.fActive = TRUE;
|
||||
actsvr->pITfKeyEventSink = NULL;
|
||||
|
||||
/* get TIP category */
|
||||
|
|
Loading…
Reference in New Issue