msctf: Set fActive directly in ActivateLanguageProfile() (Coverity).

This commit is contained in:
Nikolay Sivov 2015-06-07 09:25:42 +03:00 committed by Alexandre Julliard
parent 55e3a03ba3
commit d4bbcc44cb
2 changed files with 2 additions and 4 deletions

View File

@ -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(

View File

@ -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 */