Fix issue reported in #5560: language bar might not be supported by server.

This commit is contained in:
Armin Novak 2019-09-03 08:07:45 +02:00
parent a5f4783711
commit 843f18b110
1 changed files with 9 additions and 2 deletions

View File

@ -872,8 +872,15 @@ static UINT xf_rail_server_start_cmd(RailClientContext* context)
langBarInfo.languageBarStatus = 0x00000008; /* TF_SFT_HIDDEN */
status = context->ClientLanguageBarInfo(context, &langBarInfo);
if (status != CHANNEL_RC_OK)
return status;
/* We want the language bar, but the server might not support it. */
switch(status)
{
case CHANNEL_RC_OK:
case ERROR_BAD_CONFIGURATION:
break;
default:
return status;
}
}
sysparam.params = 0;