summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpup.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpup.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xorg/X11R7.6/rdp/rdpup.c b/xorg/X11R7.6/rdp/rdpup.c
index 19a6e6d1..832c69e6 100644
--- a/xorg/X11R7.6/rdp/rdpup.c
+++ b/xorg/X11R7.6/rdp/rdpup.c
@@ -163,6 +163,10 @@ rdpup_add_os_bitmap(PixmapPtr pixmap, rdpPixmapPtr priv)
{
return -1;
}
+ if (g_os_bitmaps == 0)
+ {
+ return -1;
+ }
rv = -1;
index = 0;
while (index < g_max_os_bitmaps)
@@ -215,6 +219,10 @@ int
rdpup_remove_os_bitmap(int rdpindex)
{
LLOGLN(0, ("rdpup_remove_os_bitmap: index %d", rdpindex));
+ if (g_os_bitmaps == 0)
+ {
+ return 1;
+ }
if ((rdpindex < 0) && (rdpindex >= g_max_os_bitmaps))
{
return 1;