mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[client] render: reject empty cursor images
This commit is contained in:
@@ -164,7 +164,8 @@ static void setCommandSource(RenderCommand * cmd, RenderQueueSource source,
|
|||||||
|
|
||||||
static bool copyCursorImage(RenderCommand * cmd, const void * data)
|
static bool copyCursorImage(RenderCommand * cmd, const void * data)
|
||||||
{
|
{
|
||||||
if (!data || cmd->cursorImage.height <= 0 || cmd->cursorImage.pitch <= 0)
|
if (!data || cmd->cursorImage.width <= 0 ||
|
||||||
|
cmd->cursorImage.height <= 0 || cmd->cursorImage.pitch <= 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ((size_t)cmd->cursorImage.height >
|
if ((size_t)cmd->cursorImage.height >
|
||||||
|
|||||||
Reference in New Issue
Block a user