Commit d4bbcc44 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 55e3a03b
......@@ -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 */
......
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