server/shadow: resuscitate shadow server

shadow_client_refresh_rect returned FALSE if the areas parameter
was NULL. It may only do so if the count parameter is > 0.
This commit is contained in:
Norbert Federa 2015-06-08 15:55:11 +02:00
parent d65cc5d0bf
commit 677be4d113
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ BOOL shadow_client_refresh_rect(rdpShadowClient* client, BYTE count, RECTANGLE_1
SHADOW_MSG_IN_REFRESH_OUTPUT* wParam;
wMessagePipe* MsgPipe = client->subsystem->MsgPipe;
if (!areas)
if (count && !areas)
return FALSE;
if (!(wParam = (SHADOW_MSG_IN_REFRESH_OUTPUT*) calloc(1, sizeof(SHADOW_MSG_IN_REFRESH_OUTPUT))))