Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Panozzo <giovanni@panozzo.it>2018-02-15 00:06:11 +0300
committerGiovanni Panozzo <giovanni@panozzo.it>2018-02-15 00:06:11 +0300
commit61960416d8e5a44d34d186ed119302e421b03b8e (patch)
treeba209cabcc076125be4d8261b7c5c1784b308399
parent1b4fd837e2cde68d7d5ddd42641e36f5f67c2ad1 (diff)
Put #ifdef around some RDP error constants
-rw-r--r--remmina-plugins/rdp/rdp_plugin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/remmina-plugins/rdp/rdp_plugin.c b/remmina-plugins/rdp/rdp_plugin.c
index 697fc9e2c..c281c7b6f 100644
--- a/remmina-plugins/rdp/rdp_plugin.c
+++ b/remmina-plugins/rdp/rdp_plugin.c
@@ -1025,34 +1025,46 @@ static gboolean remmina_rdp_main(RemminaProtocolWidget* gp)
switch (e) {
case FREERDP_ERROR_AUTHENTICATION_FAILED:
case STATUS_LOGON_FAILURE: // wrong return code from FreeRDP introduced at the end of July 2016 ? (fixed with b86c0ba)
+#ifdef FREERDP_ERROR_CONNECT_LOGON_FAILURE
case FREERDP_ERROR_CONNECT_LOGON_FAILURE:
+#endif
remmina_plugin_service->protocol_plugin_set_error(gp, _("Authentication to RDP server %s failed.\nCheck username, password and domain."),
rfi->settings->ServerHostname );
// Invalidate the saved password, so the user will be re-asked at next logon
remmina_plugin_service->file_unsave_password(remminafile);
break;
case STATUS_ACCOUNT_LOCKED_OUT:
+#ifdef FREERDP_ERROR_CONNECT_ACCOUNT_LOCKED_OUT
case FREERDP_ERROR_CONNECT_ACCOUNT_LOCKED_OUT:
+#endif
remmina_plugin_service->protocol_plugin_set_error(gp, _("Access to RDP server %s failed.\nAccount is locked out."),
rfi->settings->ServerHostname );
break;
case STATUS_ACCOUNT_EXPIRED:
+#ifdef FREERDP_ERROR_CONNECT_ACCOUNT_EXPIRED
case FREERDP_ERROR_CONNECT_ACCOUNT_EXPIRED:
+#endif
remmina_plugin_service->protocol_plugin_set_error(gp, _("Access to RDP server %s failed.\nAccount is expired."),
rfi->settings->ServerHostname );
break;
case STATUS_PASSWORD_EXPIRED:
+#ifdef FREERDP_ERROR_CONNECT_PASSWORD_EXPIRED
case FREERDP_ERROR_CONNECT_PASSWORD_EXPIRED:
+#endif
remmina_plugin_service->protocol_plugin_set_error(gp, _("Access to RDP server %s failed.\nPassword expired."),
rfi->settings->ServerHostname );
break;
case STATUS_ACCOUNT_DISABLED:
+#ifdef FREERDP_ERROR_CONNECT_ACCOUNT_DISABLED
case FREERDP_ERROR_CONNECT_ACCOUNT_DISABLED:
+#endif
remmina_plugin_service->protocol_plugin_set_error(gp, _("Access to RDP server %s failed.\nAccount is disabled."),
rfi->settings->ServerHostname );
break;
case STATUS_ACCOUNT_RESTRICTION:
+#ifdef FREERDP_ERROR_CONNECT_ACCOUNT_RESTRICTION
case FREERDP_ERROR_CONNECT_ACCOUNT_RESTRICTION:
+#endif
remmina_plugin_service->protocol_plugin_set_error(gp, _("Access to RDP server %s failed.\nAccount has restrictions."),
rfi->settings->ServerHostname );
break;