libfreerdp-core: fix surface commands

This commit is contained in:
Marc-André Moreau 2013-01-14 15:19:51 -05:00
parent 3d77d5a497
commit 0146b21eb5
2 changed files with 2 additions and 2 deletions

View File

@ -520,7 +520,7 @@ void wf_gdi_surface_bits(rdpContext* context, SURFACE_BITS_COMMAND* surface_bits
wf_invalidate_region(wfi, surface_bits_command->destLeft, surface_bits_command->destTop,
surface_bits_command->width, surface_bits_command->height);
}
else if (surface_bits_command->codecID == CODEC_ID_NONE)
else if (surface_bits_command->codecID == RDP_CODEC_ID_NONE)
{
ZeroMemory(&bitmap_info, sizeof(bitmap_info));
bitmap_info.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);

View File

@ -230,7 +230,7 @@ static BOOL fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32
break;
case FASTPATH_UPDATETYPE_SURFCMDS:
if (!update_recv_surfcmds(update, size, s))
if (update_recv_surfcmds(update, size, s) < 0)
return FALSE;
break;