|
|
@ -87,34 +87,41 @@ lxrdp_connect(struct mod* mod)
|
|
|
|
switch (connectErrorCode)
|
|
|
|
switch (connectErrorCode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case PREECONNECTERROR:
|
|
|
|
case PREECONNECTERROR:
|
|
|
|
snprintf(buf, 128, "The error code from connect is PREECONNECTERROR");
|
|
|
|
snprintf(buf, 128, "The error code from connect is "
|
|
|
|
|
|
|
|
"PREECONNECTERROR");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case UNDEFINEDCONNECTERROR:
|
|
|
|
case UNDEFINEDCONNECTERROR:
|
|
|
|
snprintf(buf, 128, "The error code from connect is UNDEFINEDCONNECTERROR");
|
|
|
|
snprintf(buf, 128, "The error code from connect is "
|
|
|
|
|
|
|
|
"UNDEFINEDCONNECTERROR");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case POSTCONNECTERROR:
|
|
|
|
case POSTCONNECTERROR:
|
|
|
|
snprintf(buf, 128, "The error code from connect is POSTCONNECTERROR");
|
|
|
|
snprintf(buf, 128, "The error code from connect is "
|
|
|
|
|
|
|
|
"POSTCONNECTERROR");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case DNSERROR:
|
|
|
|
case DNSERROR:
|
|
|
|
snprintf(buf, 128, "The DNS system generated an error");
|
|
|
|
snprintf(buf, 128, "The DNS system generated an error");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case DNSNAMENOTFOUND:
|
|
|
|
case DNSNAMENOTFOUND:
|
|
|
|
snprintf(buf, 128, "The DNS system could not find the specified name");
|
|
|
|
snprintf(buf, 128, "The DNS system could not find the "
|
|
|
|
|
|
|
|
"specified name");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case CONNECTERROR:
|
|
|
|
case CONNECTERROR:
|
|
|
|
snprintf(buf, 128, "A general connect error was returned");
|
|
|
|
snprintf(buf, 128, "A general connect error was returned");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case MCSCONNECTINITIALERROR:
|
|
|
|
case MCSCONNECTINITIALERROR:
|
|
|
|
snprintf(buf, 128, "The error code from connect is MCSCONNECTINITIALERROR");
|
|
|
|
snprintf(buf, 128, "The error code from connect is "
|
|
|
|
|
|
|
|
"MCSCONNECTINITIALERROR");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case TLSCONNECTERROR:
|
|
|
|
case TLSCONNECTERROR:
|
|
|
|
snprintf(buf, 128, "Error in TLS handshake");
|
|
|
|
snprintf(buf, 128, "Error in TLS handshake");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case AUTHENTICATIONERROR:
|
|
|
|
case AUTHENTICATIONERROR:
|
|
|
|
snprintf(buf, 128, "Authentication error check your password and username");
|
|
|
|
snprintf(buf, 128, "Authentication error check your password "
|
|
|
|
|
|
|
|
"and username");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
snprintf(buf, 128, "Unhandled Errorcode from connect : %d", connectErrorCode);
|
|
|
|
snprintf(buf, 128, "Unhandled Errorcode from connect : %d",
|
|
|
|
|
|
|
|
connectErrorCode);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -767,12 +774,12 @@ lfreerdp_upsidedown(uint8* destination, CACHE_BITMAP_V2_ORDER* cache_bitmap_v2_o
|
|
|
|
tui8* dst;
|
|
|
|
tui8* dst;
|
|
|
|
int line_bytes;
|
|
|
|
int line_bytes;
|
|
|
|
int j;
|
|
|
|
int j;
|
|
|
|
|
|
|
|
|
|
|
|
if (destination == NULL)
|
|
|
|
if (destination == NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LLOGLN(0, ("lfreerdp_upsidedown: destination pointer is NULL !!!"));
|
|
|
|
LLOGLN(0, ("lfreerdp_upsidedown: destination pointer is NULL !!!"));
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
line_bytes = server_Bpp * cache_bitmap_v2_order->bitmapWidth;
|
|
|
|
line_bytes = server_Bpp * cache_bitmap_v2_order->bitmapWidth;
|
|
|
|
src = cache_bitmap_v2_order->bitmapDataStream;
|
|
|
|
src = cache_bitmap_v2_order->bitmapDataStream;
|
|
|
|
dst = destination + ((cache_bitmap_v2_order->bitmapHeight) * line_bytes);
|
|
|
|
dst = destination + ((cache_bitmap_v2_order->bitmapHeight) * line_bytes);
|
|
|
@ -847,7 +854,6 @@ lfreerdp_cache_bitmapV2(rdpContext* context,
|
|
|
|
/* Uncompressed bitmaps are upside down */
|
|
|
|
/* Uncompressed bitmaps are upside down */
|
|
|
|
lfreerdp_upsidedown(dst_data, cache_bitmap_v2_order, server_Bpp);
|
|
|
|
lfreerdp_upsidedown(dst_data, cache_bitmap_v2_order, server_Bpp);
|
|
|
|
LLOGLN(10, ("lfreerdp_cache_bitmapV2: upside down progressed"));
|
|
|
|
LLOGLN(10, ("lfreerdp_cache_bitmapV2: upside down progressed"));
|
|
|
|
/* old: g_memcpy(dst_data, cache_bitmap_v2_order->bitmapDataStream,width * height * server_Bpp);*/
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dst_data1 = convert_bitmap(server_bpp, client_bpp, dst_data,
|
|
|
|
dst_data1 = convert_bitmap(server_bpp, client_bpp, dst_data,
|
|
|
|
width, height, mod->colormap);
|
|
|
|
width, height, mod->colormap);
|
|
|
|