xorg: check for if off screen bitmaps are off
This commit is contained in:
parent
d88291c9dd
commit
17d209985c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user