Fixed error handling for channel load failures.

This commit is contained in:
Armin Novak
2016-03-07 12:54:49 +01:00
parent 6ebf452513
commit 36cbf1b583
24 changed files with 216 additions and 165 deletions

View File

@@ -357,7 +357,7 @@ static BOOL android_post_connect(freerdp* instance)
instance->update->EndPaint = android_end_paint;
instance->update->DesktopResize = android_desktop_resize;
if (freerdp_channels_post_connect(instance->context->channels, instance) < 0)
if (freerdp_channels_post_connect(instance->context->channels, instance) != CHANNEL_RC_OK)
return FALSE;
freerdp_callback("OnSettingsChanged", "(IIII)V", instance,