mirror of https://github.com/FreeRDP/FreeRDP
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:
parent
d65cc5d0bf
commit
677be4d113
|
@ -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))))
|
||||
|
|
Loading…
Reference in New Issue