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.clsid = *rclsid;
|
||||||
LanguageProfile.langid = langid;
|
LanguageProfile.langid = langid;
|
||||||
LanguageProfile.guidProfile = *guidProfiles;
|
LanguageProfile.guidProfile = *guidProfiles;
|
||||||
|
LanguageProfile.fActive = TRUE;
|
||||||
|
|
||||||
hr = add_active_textservice(&LanguageProfile);
|
return add_active_textservice(&LanguageProfile);
|
||||||
|
|
||||||
return hr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI InputProcessorProfiles_GetActiveLanguageProfile(
|
static HRESULT WINAPI InputProcessorProfiles_GetActiveLanguageProfile(
|
||||||
|
|
|
@ -371,7 +371,6 @@ HRESULT add_active_textservice(TF_LANGUAGEPROFILE *lp)
|
||||||
|
|
||||||
actsvr->pITfTextInputProcessor = NULL;
|
actsvr->pITfTextInputProcessor = NULL;
|
||||||
actsvr->LanguageProfile = *lp;
|
actsvr->LanguageProfile = *lp;
|
||||||
actsvr->LanguageProfile.fActive = TRUE;
|
|
||||||
actsvr->pITfKeyEventSink = NULL;
|
actsvr->pITfKeyEventSink = NULL;
|
||||||
|
|
||||||
/* get TIP category */
|
/* get TIP category */
|
||||||
|
|
Loading…
Reference in New Issue