Here is a corrected patch that fixes the segfault and correctly redraws the 
desktop image. This has 
been tested with a Windows 2000 Server at 8bpp and a Windows 2003 server at 
16bpp. 

Thanks to Mat G for his suggestion on how to fix my original patch.

-Mark


--- ../rdesktop/xwin.c  2007-01-17 02:39:31.000000000 -0500
+++ xwin.c      2007-04-12 09:51:46.000000000 -0400
@@ -3218,7 +3218,7 @@
                return;
 
        image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
-                            (char *) data, cx, cy, BitmapPad(g_display), cx * 
g_bpp / 8);
+                            (char *) data, cx, cy, g_bpp, 0);
 
        if (g_ownbackstore)
        {

-- 
Segmentation Fault (core dumped)
https://bugs.launchpad.net/bugs/104332
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to