projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb61820
)
Each bitmap send by the server contains color depth. Even if we negotiated 8bpp serve...
author
Pawel Jakub Dawidek
<pawel@dawidek.net>
Tue, 31 Jan 2012 13:33:49 +0000
(14:33 +0100)
committer
Pawel Jakub Dawidek
<pawel@dawidek.net>
Tue, 31 Jan 2012 15:14:54 +0000
(16:14 +0100)
Fix a crash using bpp to allocate image from the bitmap data instead of negotiated color depth.
client/X11/xf_graphics.c
patch
|
blob
|
history
diff --git
a/client/X11/xf_graphics.c
b/client/X11/xf_graphics.c
index
ed5f9bc
..
0f3ab7c
100644
(file)
--- a/
client/X11/xf_graphics.c
+++ b/
client/X11/xf_graphics.c
@@
-43,7
+43,7
@@
void xf_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
if (bitmap->data != NULL)
{
data = freerdp_image_convert(bitmap->data, NULL,
- bitmap->width, bitmap->height,
xfi->srcB
pp, xfi->bpp, xfi->clrconv);
+ bitmap->width, bitmap->height,
bitmap->b
pp, xfi->bpp, xfi->clrconv);
if (bitmap->ephemeral != true)
{