I would like to use XRDP as a gateway for RDP and it works great when
using XP. When both the server behind the XRDP gateway and the client
is Windows 7 it fails. I therefore downloaded the latest source code
from git for both freerdp and xrdp and built the source with configure
--enable-freerdp --enable-xrdpdebug. The result was:

xrdp-freerdp.c: error: ‘struct rdp_set’ has no member named ‘text_flags’
xrdp-freerdp.c: error: ‘struct rdp_inst’ has no member named ‘ui_add_char’
xrdp-freerdp.c: error: ‘struct rdp_inst’ has no member named ‘ui_draw_text’

After adding the required information to the structs it now compiles.
In runtime when connecting through freerdp-any the debug output shows:

convert_bitmap: error unknown conversion from 15 to 15
convert_color: error unknown conversion from 15 to 15

Without knowing the code in detail I added two changes to the xrdp-color.c file.

In function convert_bitmap() add:

if ((in_bpp == 15) && (out_bpp == 15))
{
   return bmpdata;
}

In function convert_color () add:

if ((in_bpp == 15) && (out_bpp == 15))
{
  return in_color;
}

The gateway now works but when I start a cmd window through the
gateway that window is impossible to read. Other windows are readable.
I assume my changes include some errors. Please help me.
Thanks!

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to