core: use error instead of debug
When the function would return with an error print an error message instead of a debug message
This commit is contained in:
parent
7624519453
commit
ff8d172a12
@ -264,7 +264,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_ORDERS:
|
||||
if (!fastpath_recv_orders(fastpath, s))
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update: FASTPATH_UPDATETYPE_ORDERS - fastpath_recv_orders()");
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_ORDERS - fastpath_recv_orders()");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -273,7 +273,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_PALETTE:
|
||||
if (!fastpath_recv_update_common(fastpath, s))
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update: FASTPATH_UPDATETYPE_ORDERS - fastpath_recv_orders()");
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_ORDERS - fastpath_recv_orders()");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -288,7 +288,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_SURFCMDS:
|
||||
status = update_recv_surfcmds(update, size, s);
|
||||
if (status < 0)
|
||||
WLog_DBG(TAG, "FASTPATH_UPDATETYPE_SURFCMDS - update_recv_surfcmds() - %i", status);
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_SURFCMDS - update_recv_surfcmds() - %i", status);
|
||||
break;
|
||||
|
||||
case FASTPATH_UPDATETYPE_PTR_NULL:
|
||||
@ -304,7 +304,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_PTR_POSITION:
|
||||
if (!update_read_pointer_position(s, &pointer->pointer_position))
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update: FASTPATH_UPDATETYPE_PTR_POSITION - update_read_pointer_position()");
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_PTR_POSITION - update_read_pointer_position()");
|
||||
return -1;
|
||||
}
|
||||
IFCALL(pointer->PointerPosition, context, &pointer->pointer_position);
|
||||
@ -313,7 +313,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_COLOR:
|
||||
if (!update_read_pointer_color(s, &pointer->pointer_color, 24))
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update: FASTPATH_UPDATETYPE_COLOR - update_read_pointer_color()");
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_COLOR - update_read_pointer_color()");
|
||||
return -1;
|
||||
}
|
||||
IFCALL(pointer->PointerColor, context, &pointer->pointer_color);
|
||||
@ -322,7 +322,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_CACHED:
|
||||
if (!update_read_pointer_cached(s, &pointer->pointer_cached))
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update: FASTPATH_UPDATETYPE_CACHED - update_read_pointer_cached()");
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_CACHED - update_read_pointer_cached()");
|
||||
return -1;
|
||||
}
|
||||
IFCALL(pointer->PointerCached, context, &pointer->pointer_cached);
|
||||
@ -331,7 +331,7 @@ static int fastpath_recv_update(rdpFastPath* fastpath, BYTE updateCode, UINT32 s
|
||||
case FASTPATH_UPDATETYPE_POINTER:
|
||||
if (!update_read_pointer_new(s, &pointer->pointer_new))
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update: FASTPATH_UPDATETYPE_POINTER - update_read_pointer_new()");
|
||||
WLog_ERR(TAG, "FASTPATH_UPDATETYPE_POINTER - update_read_pointer_new()");
|
||||
return -1;
|
||||
}
|
||||
IFCALL(pointer->PointerNew, context, &pointer->pointer_new);
|
||||
@ -391,7 +391,7 @@ static int fastpath_recv_update_data(rdpFastPath* fastpath, wStream* s)
|
||||
|
||||
if (Stream_GetRemainingLength(s) < size)
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update_data: Stream_GetRemainingLength() < size");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength() < size");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -433,7 +433,7 @@ static int fastpath_recv_update_data(rdpFastPath* fastpath, wStream* s)
|
||||
|
||||
if (status < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update_data: fastpath_recv_update() - %i", status);
|
||||
WLog_ERR(TAG, "fastpath_recv_update() - %i", status);
|
||||
goto out_fail;
|
||||
}
|
||||
}
|
||||
@ -530,7 +530,7 @@ static int fastpath_recv_update_data(rdpFastPath* fastpath, wStream* s)
|
||||
|
||||
if (status < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_update_data: fastpath_recv_update() - %i", status);
|
||||
WLog_ERR(TAG, "fastpath_recv_update_data: fastpath_recv_update() - %i", status);
|
||||
goto out_fail;
|
||||
}
|
||||
}
|
||||
@ -562,7 +562,7 @@ int fastpath_recv_updates(rdpFastPath* fastpath, wStream* s)
|
||||
{
|
||||
if (fastpath_recv_update_data(fastpath, s) < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "fastpath_recv_updates: fastpath_recv_update_data() fail");
|
||||
WLog_ERR(TAG, "fastpath_recv_update_data() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -246,14 +246,14 @@ BOOL freerdp_check_event_handles(rdpContext* context)
|
||||
|
||||
if (!status)
|
||||
{
|
||||
WLog_DBG(TAG, "freerdp_check_event_handles: freerdp_check_fds() - %i", status);
|
||||
WLog_ERR(TAG, "freerdp_check_fds() failed - %i", status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
status = freerdp_channels_check_fds(context->channels, context->instance);
|
||||
if (!status)
|
||||
{
|
||||
WLog_DBG(TAG, "freerdp_check_event_handles: freerdp_channels_check_fds() - %i", status);
|
||||
WLog_ERR(TAG, "freerdp_channels_check_fds() failed - %i", status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -501,7 +501,7 @@ static INLINE BOOL update_read_delta(wStream* s, INT32* value)
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 1)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
return FALSE;
|
||||
}
|
||||
Stream_Read_UINT8(s, byte);
|
||||
@ -515,7 +515,7 @@ static INLINE BOOL update_read_delta(wStream* s, INT32* value)
|
||||
{
|
||||
if (Stream_GetRemainingLength(s) < 1)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
return FALSE;
|
||||
}
|
||||
Stream_Read_UINT8(s, byte);
|
||||
@ -730,7 +730,7 @@ static INLINE BOOL update_read_delta_points(wStream* s, DELTA_POINT* points, int
|
||||
|
||||
if (Stream_GetRemainingLength(s) < zeroBitsSize)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < %i", zeroBitsSize);
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < %i", zeroBitsSize);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -746,13 +746,13 @@ static INLINE BOOL update_read_delta_points(wStream* s, DELTA_POINT* points, int
|
||||
|
||||
if ((~flags & 0x80) && !update_read_delta(s, &points[i].x))
|
||||
{
|
||||
WLog_DBG(TAG, "update_read_delta(x) failed");
|
||||
WLog_ERR(TAG, "update_read_delta(x) failed");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if ((~flags & 0x40) && !update_read_delta(s, &points[i].y))
|
||||
{
|
||||
WLog_DBG(TAG, "update_read_delta(y) failed");
|
||||
WLog_ERR(TAG, "update_read_delta(y) failed");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -1352,7 +1352,7 @@ BOOL update_read_polyline_order(wStream* s, ORDER_INFO* orderInfo, POLYLINE_ORDE
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 1)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
return FALSE;
|
||||
}
|
||||
Stream_Read_UINT8(s, polyline->cbData);
|
||||
@ -1360,7 +1360,7 @@ BOOL update_read_polyline_order(wStream* s, ORDER_INFO* orderInfo, POLYLINE_ORDE
|
||||
new_points = (DELTA_POINT*) realloc(polyline->points, sizeof(DELTA_POINT) * new_num);
|
||||
if (!new_points)
|
||||
{
|
||||
WLog_DBG(TAG, "realloc(%i) failed", new_num);
|
||||
WLog_ERR(TAG, "realloc(%i) failed", new_num);
|
||||
return FALSE;
|
||||
}
|
||||
polyline->points = new_points;
|
||||
@ -3157,7 +3157,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
if (!update_read_field_flags(s, &(orderInfo->fieldFlags), flags,
|
||||
PRIMARY_DRAWING_ORDER_FIELD_BYTES[orderInfo->orderType]))
|
||||
{
|
||||
WLog_DBG(TAG, "update_read_field_flags() failed");
|
||||
WLog_ERR(TAG, "update_read_field_flags() failed");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -3167,7 +3167,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
{
|
||||
if (!update_read_bounds(s, &orderInfo->bounds))
|
||||
{
|
||||
WLog_DBG(TAG, "update_read_bounds() failed");
|
||||
WLog_ERR(TAG, "update_read_bounds() failed");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
@ -3186,7 +3186,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_DSTBLT:
|
||||
if (!update_read_dstblt_order(s, orderInfo, &(primary->dstblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_DSTBLT - update_read_dstblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_DSTBLT - update_read_dstblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DstBlt");
|
||||
@ -3196,7 +3196,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_PATBLT:
|
||||
if (!update_read_patblt_order(s, orderInfo, &(primary->patblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_PATBLT - update_read_patblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_PATBLT - update_read_patblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "PatBlt");
|
||||
@ -3206,7 +3206,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_SCRBLT:
|
||||
if (!update_read_scrblt_order(s, orderInfo, &(primary->scrblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_SCRBLT - update_read_scrblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_SCRBLT - update_read_scrblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "ScrBlt");
|
||||
@ -3216,7 +3216,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_OPAQUE_RECT:
|
||||
if (!update_read_opaque_rect_order(s, orderInfo, &(primary->opaque_rect)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_OPAQUE_RECT - update_read_opaque_rect_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_OPAQUE_RECT - update_read_opaque_rect_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "OpaqueRect");
|
||||
@ -3226,7 +3226,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_DRAW_NINE_GRID:
|
||||
if (!update_read_draw_nine_grid_order(s, orderInfo, &(primary->draw_nine_grid)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_DRAW_NINE_GRID - update_read_draw_nine_grid_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_DRAW_NINE_GRID - update_read_draw_nine_grid_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawNineGrid");
|
||||
@ -3236,7 +3236,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MULTI_DSTBLT:
|
||||
if (!update_read_multi_dstblt_order(s, orderInfo, &(primary->multi_dstblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MULTI_DSTBLT - update_read_multi_dstblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MULTI_DSTBLT - update_read_multi_dstblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "MultiDstBlt");
|
||||
@ -3246,7 +3246,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MULTI_PATBLT:
|
||||
if (!update_read_multi_patblt_order(s, orderInfo, &(primary->multi_patblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MULTI_PATBLT - update_read_multi_patblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MULTI_PATBLT - update_read_multi_patblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "MultiPatBlt");
|
||||
@ -3256,7 +3256,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MULTI_SCRBLT:
|
||||
if (!update_read_multi_scrblt_order(s, orderInfo, &(primary->multi_scrblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MULTI_SCRBLT - update_read_multi_scrblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MULTI_SCRBLT - update_read_multi_scrblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "MultiScrBlt");
|
||||
@ -3266,7 +3266,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MULTI_OPAQUE_RECT:
|
||||
if (!update_read_multi_opaque_rect_order(s, orderInfo, &(primary->multi_opaque_rect)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MULTI_OPAQUE_RECT - update_read_multi_opaque_rect_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MULTI_OPAQUE_RECT - update_read_multi_opaque_rect_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "MultiOpaqueRect");
|
||||
@ -3276,7 +3276,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MULTI_DRAW_NINE_GRID:
|
||||
if (!update_read_multi_draw_nine_grid_order(s, orderInfo, &(primary->multi_draw_nine_grid)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MULTI_DRAW_NINE_GRID - update_read_multi_draw_nine_grid_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MULTI_DRAW_NINE_GRID - update_read_multi_draw_nine_grid_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "MultiDrawNineGrid");
|
||||
@ -3286,7 +3286,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_LINE_TO:
|
||||
if (!update_read_line_to_order(s, orderInfo, &(primary->line_to)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_LINE_TO - update_read_line_to_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_LINE_TO - update_read_line_to_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "LineTo");
|
||||
@ -3296,7 +3296,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_POLYLINE:
|
||||
if (!update_read_polyline_order(s, orderInfo, &(primary->polyline)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_POLYLINE - update_read_polyline_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_POLYLINE - update_read_polyline_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "Polyline");
|
||||
@ -3306,7 +3306,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MEMBLT:
|
||||
if (!update_read_memblt_order(s, orderInfo, &(primary->memblt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MEMBLT - update_read_memblt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MEMBLT - update_read_memblt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "MemBlt");
|
||||
@ -3316,7 +3316,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_MEM3BLT:
|
||||
if (!update_read_mem3blt_order(s, orderInfo, &(primary->mem3blt)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_MEM3BLT - update_read_mem3blt_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_MEM3BLT - update_read_mem3blt_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "Mem3Blt");
|
||||
@ -3326,7 +3326,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_SAVE_BITMAP:
|
||||
if (!update_read_save_bitmap_order(s, orderInfo, &(primary->save_bitmap)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_SAVE_BITMAP - update_read_save_bitmap_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_SAVE_BITMAP - update_read_save_bitmap_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "SaveBitmap");
|
||||
@ -3336,7 +3336,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GLYPH_INDEX:
|
||||
if (!update_read_glyph_index_order(s, orderInfo, &(primary->glyph_index)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GLYPH_INDEX - update_read_glyph_index_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GLYPH_INDEX - update_read_glyph_index_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "GlyphIndex");
|
||||
@ -3346,7 +3346,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_FAST_INDEX:
|
||||
if (!update_read_fast_index_order(s, orderInfo, &(primary->fast_index)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_FAST_INDEX - update_read_fast_index_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_FAST_INDEX - update_read_fast_index_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "FastIndex");
|
||||
@ -3356,7 +3356,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_FAST_GLYPH:
|
||||
if (!update_read_fast_glyph_order(s, orderInfo, &(primary->fast_glyph)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_FAST_GLYPH - update_read_fast_glyph_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_FAST_GLYPH - update_read_fast_glyph_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "FastGlyph");
|
||||
@ -3366,7 +3366,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_POLYGON_SC:
|
||||
if (!update_read_polygon_sc_order(s, orderInfo, &(primary->polygon_sc)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_POLYGON_SC - update_read_polygon_sc_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_POLYGON_SC - update_read_polygon_sc_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "PolygonSC");
|
||||
@ -3376,7 +3376,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_POLYGON_CB:
|
||||
if (!update_read_polygon_cb_order(s, orderInfo, &(primary->polygon_cb)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_POLYGON_CB - update_read_polygon_cb_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_POLYGON_CB - update_read_polygon_cb_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "PolygonCB");
|
||||
@ -3386,7 +3386,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_ELLIPSE_SC:
|
||||
if (!update_read_ellipse_sc_order(s, orderInfo, &(primary->ellipse_sc)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_ELLIPSE_SC - update_read_ellipse_sc_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_ELLIPSE_SC - update_read_ellipse_sc_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "EllipseSC");
|
||||
@ -3396,7 +3396,7 @@ BOOL update_recv_primary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_ELLIPSE_CB:
|
||||
if (!update_read_ellipse_cb_order(s, orderInfo, &(primary->ellipse_cb)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_ELLIPSE_CB - update_read_ellipse_cb_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_ELLIPSE_CB - update_read_ellipse_cb_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "EllipseCB");
|
||||
@ -3426,7 +3426,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 5)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 5");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 5");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -3448,7 +3448,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_BITMAP_UNCOMPRESSED:
|
||||
if (!update_read_cache_bitmap_order(s, &(secondary->cache_bitmap_order), FALSE, extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_BITMAP_UNCOMPRESSED - update_read_cache_bitmap_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_BITMAP_UNCOMPRESSED - update_read_cache_bitmap_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheBitmapUncompressed");
|
||||
@ -3458,7 +3458,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_CACHE_BITMAP_COMPRESSED:
|
||||
if (!update_read_cache_bitmap_order(s, &(secondary->cache_bitmap_order), TRUE, extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CACHE_BITMAP_COMPRESSED - update_read_cache_bitmap_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CACHE_BITMAP_COMPRESSED - update_read_cache_bitmap_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheBitmapCompressed");
|
||||
@ -3468,7 +3468,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_BITMAP_UNCOMPRESSED_V2:
|
||||
if (!update_read_cache_bitmap_v2_order(s, &(secondary->cache_bitmap_v2_order), FALSE, extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_BITMAP_UNCOMPRESSED_V2 - update_read_cache_bitmap_v2_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_BITMAP_UNCOMPRESSED_V2 - update_read_cache_bitmap_v2_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheBitmapUncompressedV2");
|
||||
@ -3478,7 +3478,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_BITMAP_COMPRESSED_V2:
|
||||
if (!update_read_cache_bitmap_v2_order(s, &(secondary->cache_bitmap_v2_order), TRUE, extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_BITMAP_COMPRESSED_V2 - update_read_cache_bitmap_v2_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_BITMAP_COMPRESSED_V2 - update_read_cache_bitmap_v2_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheBitmapCompressedV2");
|
||||
@ -3488,7 +3488,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_BITMAP_COMPRESSED_V3:
|
||||
if (!update_read_cache_bitmap_v3_order(s, &(secondary->cache_bitmap_v3_order), extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_BITMAP_COMPRESSED_V3 - update_read_cache_bitmap_v3_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_BITMAP_COMPRESSED_V3 - update_read_cache_bitmap_v3_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheBitmapCompressedV3");
|
||||
@ -3498,7 +3498,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_CACHE_COLOR_TABLE:
|
||||
if (!update_read_cache_color_table_order(s, &(secondary->cache_color_table_order), extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CACHE_COLOR_TABLE - update_read_cache_color_table_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CACHE_COLOR_TABLE - update_read_cache_color_table_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheColorTable");
|
||||
@ -3510,7 +3510,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
{
|
||||
if (!update_read_cache_glyph_v2_order(s, &(secondary->cache_glyph_v2_order), extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CACHE_GLYPH - update_read_cache_glyph_v2_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CACHE_GLYPH - update_read_cache_glyph_v2_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheGlyphV2");
|
||||
@ -3520,7 +3520,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
{
|
||||
if (!update_read_cache_glyph_order(s, &(secondary->cache_glyph_order), extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CACHE_GLYPH - update_read_cache_glyph_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CACHE_GLYPH - update_read_cache_glyph_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheGlyph");
|
||||
@ -3531,7 +3531,7 @@ BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_CACHE_BRUSH:
|
||||
if (!update_read_cache_brush_order(s, &(secondary->cache_brush_order), extraFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CACHE_BRUSH - update_read_cache_brush_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CACHE_BRUSH - update_read_cache_brush_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CacheBrush");
|
||||
@ -3567,7 +3567,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_CREATE_OFFSCREEN_BITMAP:
|
||||
if (!update_read_create_offscreen_bitmap_order(s, &(altsec->create_offscreen_bitmap)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CREATE_OFFSCREEN_BITMAP - update_read_create_offscreen_bitmap_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CREATE_OFFSCREEN_BITMAP - update_read_create_offscreen_bitmap_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CreateOffscreenBitmap");
|
||||
@ -3577,7 +3577,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_SWITCH_SURFACE:
|
||||
if (!update_read_switch_surface_order(s, &(altsec->switch_surface)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_SWITCH_SURFACE - update_read_switch_surface_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_SWITCH_SURFACE - update_read_switch_surface_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "SwitchSurface");
|
||||
@ -3587,7 +3587,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_CREATE_NINE_GRID_BITMAP:
|
||||
if (!update_read_create_nine_grid_bitmap_order(s, &(altsec->create_nine_grid_bitmap)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_CREATE_NINE_GRID_BITMAP - update_read_create_nine_grid_bitmap_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_CREATE_NINE_GRID_BITMAP - update_read_create_nine_grid_bitmap_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "CreateNineGridBitmap");
|
||||
@ -3597,7 +3597,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_FRAME_MARKER:
|
||||
if (!update_read_frame_marker_order(s, &(altsec->frame_marker)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_FRAME_MARKER - update_read_frame_marker_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_FRAME_MARKER - update_read_frame_marker_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "AltSecFrameMarker: action: %s (%d)",
|
||||
@ -3608,7 +3608,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_STREAM_BITMAP_FIRST:
|
||||
if (!update_read_stream_bitmap_first_order(s, &(altsec->stream_bitmap_first)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_STREAM_BITMAP_FIRST - update_read_stream_bitmap_first_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_STREAM_BITMAP_FIRST - update_read_stream_bitmap_first_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "StreamBitmapFirst");
|
||||
@ -3618,7 +3618,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_STREAM_BITMAP_NEXT:
|
||||
if (!update_read_stream_bitmap_next_order(s, &(altsec->stream_bitmap_next)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_STREAM_BITMAP_NEXT - update_read_stream_bitmap_next_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_STREAM_BITMAP_NEXT - update_read_stream_bitmap_next_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "StreamBitmapNext");
|
||||
@ -3628,7 +3628,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GDIPLUS_FIRST:
|
||||
if (!update_read_draw_gdiplus_first_order(s, &(altsec->draw_gdiplus_first)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GDIPLUS_FIRST - update_read_draw_gdiplus_first_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GDIPLUS_FIRST - update_read_draw_gdiplus_first_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawGdiPlusFirst");
|
||||
@ -3638,7 +3638,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GDIPLUS_NEXT:
|
||||
if (!update_read_draw_gdiplus_next_order(s, &(altsec->draw_gdiplus_next)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GDIPLUS_NEXT - update_read_draw_gdiplus_next_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GDIPLUS_NEXT - update_read_draw_gdiplus_next_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawGdiPlusNext");
|
||||
@ -3648,7 +3648,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GDIPLUS_END:
|
||||
if (update_read_draw_gdiplus_end_order(s, &(altsec->draw_gdiplus_end)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GDIPLUS_END - update_read_draw_gdiplus_end_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GDIPLUS_END - update_read_draw_gdiplus_end_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawGdiPlusEnd");
|
||||
@ -3658,7 +3658,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GDIPLUS_CACHE_FIRST:
|
||||
if (!update_read_draw_gdiplus_cache_first_order(s, &(altsec->draw_gdiplus_cache_first)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GDIPLUS_CACHE_FIRST - update_read_draw_gdiplus_cache_first_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GDIPLUS_CACHE_FIRST - update_read_draw_gdiplus_cache_first_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawGdiPlusCacheFirst");
|
||||
@ -3668,7 +3668,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GDIPLUS_CACHE_NEXT:
|
||||
if (!update_read_draw_gdiplus_cache_next_order(s, &(altsec->draw_gdiplus_cache_next)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GDIPLUS_CACHE_NEXT - update_read_draw_gdiplus_cache_next_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GDIPLUS_CACHE_NEXT - update_read_draw_gdiplus_cache_next_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawGdiPlusCacheNext");
|
||||
@ -3678,7 +3678,7 @@ BOOL update_recv_altsec_order(rdpUpdate* update, wStream* s, BYTE flags)
|
||||
case ORDER_TYPE_GDIPLUS_CACHE_END:
|
||||
if (!update_read_draw_gdiplus_cache_end_order(s, &(altsec->draw_gdiplus_cache_end)))
|
||||
{
|
||||
WLog_DBG(TAG, "ORDER_TYPE_GDIPLUS_CACHE_END - update_read_draw_gdiplus_cache_end_order() failed");
|
||||
WLog_ERR(TAG, "ORDER_TYPE_GDIPLUS_CACHE_END - update_read_draw_gdiplus_cache_end_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
WLog_Print(update->log, WLOG_DEBUG, "DrawGdiPlusCacheEnd");
|
||||
@ -3704,7 +3704,7 @@ BOOL update_recv_order(rdpUpdate* update, wStream* s)
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 1)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 1");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -460,7 +460,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_INITIAL:
|
||||
if (!rdp_server_accept_nego(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_INITIAL - rdp_server_accept_nego() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_INITIAL - rdp_server_accept_nego() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -481,7 +481,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_NEGO:
|
||||
if (!rdp_server_accept_mcs_connect_initial(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_NEGO - rdp_server_accept_mcs_connect_initial() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_NEGO - rdp_server_accept_mcs_connect_initial() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -489,7 +489,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_MCS_CONNECT:
|
||||
if (!rdp_server_accept_mcs_erect_domain_request(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_MCS_CONNECT - rdp_server_accept_mcs_erect_domain_request() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_MCS_CONNECT - rdp_server_accept_mcs_erect_domain_request() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -497,7 +497,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_MCS_ERECT_DOMAIN:
|
||||
if (!rdp_server_accept_mcs_attach_user_request(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_MCS_ERECT_DOMAIN - rdp_server_accept_mcs_attach_user_request() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_MCS_ERECT_DOMAIN - rdp_server_accept_mcs_attach_user_request() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -505,7 +505,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_MCS_ATTACH_USER:
|
||||
if (!rdp_server_accept_mcs_channel_join_request(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_MCS_ATTACH_USER - rdp_server_accept_mcs_channel_join_request() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_MCS_ATTACH_USER - rdp_server_accept_mcs_channel_join_request() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -515,7 +515,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
{
|
||||
if (!rdp_server_establish_keys(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_RDP_SECURITY_COMMENCEMENT - rdp_server_establish_keys() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_RDP_SECURITY_COMMENCEMENT - rdp_server_establish_keys() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -528,7 +528,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_SECURE_SETTINGS_EXCHANGE:
|
||||
if (!rdp_recv_client_info(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_SECURE_SETTINGS_EXCHANGE - rdp_recv_client_info() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_SECURE_SETTINGS_EXCHANGE - rdp_recv_client_info() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -540,7 +540,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_LICENSING:
|
||||
if (!license_send_valid_client_error_packet(rdp->license))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_LICENSING - license_send_valid_client_error_packet() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_LICENSING - license_send_valid_client_error_packet() fail");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -557,7 +557,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
|
||||
if (!rdp_send_demand_active(rdp))
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_CAPABILITIES_EXCHANGE - rdp_send_demand_active() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_CAPABILITIES_EXCHANGE - rdp_send_demand_active() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -567,7 +567,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
{
|
||||
if (peer_recv_pdu(client, s) < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_CAPABILITIES_EXCHANGE - peer_recv_pdu() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_CAPABILITIES_EXCHANGE - peer_recv_pdu() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -581,7 +581,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
|
||||
if (peer_recv_pdu(client, s) < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_CAPABILITIES_EXCHANGE - peer_recv_pdu() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_CAPABILITIES_EXCHANGE - peer_recv_pdu() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -591,7 +591,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_FINALIZATION:
|
||||
if (peer_recv_pdu(client, s) < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_FINALIZATION - peer_recv_pdu() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_FINALIZATION - peer_recv_pdu() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -599,7 +599,7 @@ static int peer_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_ACTIVE:
|
||||
if (peer_recv_pdu(client, s) < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "peer_recv_callback: CONNECTION_STATE_ACTIVE - peer_recv_pdu() fail");
|
||||
WLog_ERR(TAG, "peer_recv_callback: CONNECTION_STATE_ACTIVE - peer_recv_pdu() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
|
@ -769,7 +769,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
|
||||
if (!rdp_read_share_data_header(s, &length, &type, &shareId, &compressedType, &compressedLength))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_read_share_data_header() failed");
|
||||
WLog_ERR(TAG, "rdp_read_share_data_header() failed");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -819,7 +819,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_UPDATE:
|
||||
if (!update_recv(rdp->update, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_UPDATE - update_recv() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_UPDATE - update_recv() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -827,7 +827,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_CONTROL:
|
||||
if (!rdp_recv_server_control_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_CONTROL - rdp_recv_server_control_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_CONTROL - rdp_recv_server_control_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -835,7 +835,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_POINTER:
|
||||
if (!update_recv_pointer(rdp->update, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_POINTER - update_recv_pointer() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_POINTER - update_recv_pointer() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -843,7 +843,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_SYNCHRONIZE:
|
||||
if (!rdp_recv_synchronize_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_SYNCHRONIZE - rdp_recv_synchronize_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_SYNCHRONIZE - rdp_recv_synchronize_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -851,7 +851,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_PLAY_SOUND:
|
||||
if (!update_recv_play_sound(rdp->update, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_PLAY_SOUND - update_recv_play_sound() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_PLAY_SOUND - update_recv_play_sound() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -859,7 +859,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_SHUTDOWN_DENIED:
|
||||
if (!rdp_recv_server_shutdown_denied_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_SHUTDOWN_DENIED - rdp_recv_server_shutdown_denied_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_SHUTDOWN_DENIED - rdp_recv_server_shutdown_denied_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -867,7 +867,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_SAVE_SESSION_INFO:
|
||||
if (!rdp_recv_save_session_info(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_SAVE_SESSION_INFO - rdp_recv_save_session_info() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_SAVE_SESSION_INFO - rdp_recv_save_session_info() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -875,7 +875,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_FONT_MAP:
|
||||
if (!rdp_recv_font_map_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_FONT_MAP - rdp_recv_font_map_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_FONT_MAP - rdp_recv_font_map_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -883,7 +883,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_SET_KEYBOARD_INDICATORS:
|
||||
if (!rdp_recv_server_set_keyboard_indicators_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_SET_KEYBOARD_INDICATORS - rdp_recv_server_set_keyboard_indicators_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_SET_KEYBOARD_INDICATORS - rdp_recv_server_set_keyboard_indicators_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -891,7 +891,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_SET_KEYBOARD_IME_STATUS:
|
||||
if (!rdp_recv_server_set_keyboard_ime_status_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_SET_KEYBOARD_IME_STATUS - rdp_recv_server_set_keyboard_ime_status_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_SET_KEYBOARD_IME_STATUS - rdp_recv_server_set_keyboard_ime_status_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -899,7 +899,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_SET_ERROR_INFO:
|
||||
if (!rdp_recv_set_error_info_data_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_SET_ERROR_INFO - rdp_recv_set_error_info_data_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_SET_ERROR_INFO - rdp_recv_set_error_info_data_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -907,7 +907,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_ARC_STATUS:
|
||||
if (!rdp_recv_server_auto_reconnect_status_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_ARC_STATUS - rdp_recv_server_auto_reconnect_status_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_ARC_STATUS - rdp_recv_server_auto_reconnect_status_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -915,7 +915,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_STATUS_INFO:
|
||||
if (!rdp_recv_server_status_info_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_STATUS_INFO - rdp_recv_server_status_info_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_STATUS_INFO - rdp_recv_server_status_info_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -923,7 +923,7 @@ int rdp_recv_data_pdu(rdpRdp* rdp, wStream* s)
|
||||
case DATA_PDU_TYPE_MONITOR_LAYOUT:
|
||||
if (!rdp_recv_monitor_layout_pdu(rdp, cs))
|
||||
{
|
||||
WLog_DBG(TAG, "DATA_PDU_TYPE_MONITOR_LAYOUT - rdp_recv_monitor_layout_pdu() failed");
|
||||
WLog_ERR(TAG, "DATA_PDU_TYPE_MONITOR_LAYOUT - rdp_recv_monitor_layout_pdu() failed");
|
||||
goto out_fail;
|
||||
}
|
||||
break;
|
||||
@ -1138,7 +1138,7 @@ static int rdp_recv_tpkt_pdu(rdpRdp* rdp, wStream* s)
|
||||
{
|
||||
if (!rdp_read_security_header(s, &securityFlags))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_tpkt_pdu: rdp_read_security_header() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_tpkt_pdu: rdp_read_security_header() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1171,7 +1171,7 @@ static int rdp_recv_tpkt_pdu(rdpRdp* rdp, wStream* s)
|
||||
|
||||
if (!rdp_read_share_control_header(s, &pduLength, &pduType, &pduSource))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_tpkt_pdu: rdp_read_share_control_header() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_tpkt_pdu: rdp_read_share_control_header() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1192,7 +1192,7 @@ static int rdp_recv_tpkt_pdu(rdpRdp* rdp, wStream* s)
|
||||
case PDU_TYPE_DEACTIVATE_ALL:
|
||||
if (!rdp_recv_deactivate_all(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_tpkt_pdu: rdp_recv_deactivate_all() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_tpkt_pdu: rdp_recv_deactivate_all() fail");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
@ -1222,7 +1222,7 @@ static int rdp_recv_tpkt_pdu(rdpRdp* rdp, wStream* s)
|
||||
{
|
||||
if (!freerdp_channel_process(rdp->instance, s, channelId))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_tpkt_pdu: freerdp_channel_process() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_tpkt_pdu: freerdp_channel_process() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1239,7 +1239,7 @@ static int rdp_recv_fastpath_pdu(rdpRdp* rdp, wStream* s)
|
||||
|
||||
if (!fastpath_read_header_rdp(fastpath, s, &length))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_fastpath_pdu: fastpath_read_header_rdp() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_fastpath_pdu: fastpath_read_header_rdp() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1260,7 +1260,7 @@ static int rdp_recv_fastpath_pdu(rdpRdp* rdp, wStream* s)
|
||||
|
||||
if (!rdp_decrypt(rdp, s, length, flags))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_fastpath_pdu: rdp_decrypt() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_fastpath_pdu: rdp_decrypt() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1298,7 +1298,7 @@ int rdp_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_NLA:
|
||||
if (nla_recv_pdu(rdp->nla, s) < 1)
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_callback: CONNECTION_STATE_NLA - nla_recv_pdu() fail");
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1311,7 +1311,7 @@ int rdp_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
|
||||
if (!mcs_client_begin(rdp->mcs))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_callback: CONNECTION_STATE_NLA - mcs_client_begin() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_callback: CONNECTION_STATE_NLA - mcs_client_begin() fail");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -1359,7 +1359,7 @@ int rdp_recv_callback(rdpTransport* transport, wStream* s, void* extra)
|
||||
case CONNECTION_STATE_MCS_CHANNEL_JOIN:
|
||||
if (!rdp_client_connect_mcs_channel_join_confirm(rdp, s))
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_recv_callback: CONNECTION_STATE_MCS_CHANNEL_JOIN - rdp_client_connect_mcs_channel_join_confirm() fail");
|
||||
WLog_ERR(TAG, "rdp_recv_callback: CONNECTION_STATE_MCS_CHANNEL_JOIN - rdp_client_connect_mcs_channel_join_confirm() fail");
|
||||
status = -1;
|
||||
}
|
||||
break;
|
||||
@ -1438,7 +1438,7 @@ int rdp_check_fds(rdpRdp* rdp)
|
||||
|
||||
if (status < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "rdp_check_fds: tsg_check_event_handles() - %i", status);
|
||||
WLog_ERR(TAG, "rdp_check_fds: tsg_check_event_handles() - %i", status);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -794,7 +794,7 @@ int transport_check_fds(rdpTransport* transport)
|
||||
|
||||
if (recv_status < 0)
|
||||
{
|
||||
WLog_DBG(TAG, "transport_check_fds: transport->ReceiveCallback() - %i", recv_status);
|
||||
WLog_ERR(TAG, "transport_check_fds: transport->ReceiveCallback() - %i", recv_status);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
@ -941,7 +941,7 @@ static void* transport_client_thread(void* arg)
|
||||
{
|
||||
if (!freerdp_check_event_handles(context))
|
||||
{
|
||||
WLog_DBG(TAG, "freerdp_check_event_handles()");
|
||||
WLog_ERR(TAG, "freerdp_check_event_handles()");
|
||||
rdp_set_error_info(rdp, ERRINFO_PEER_DISCONNECTED);
|
||||
break;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ BOOL update_recv_orders(rdpUpdate* update, wStream* s)
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 6)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 6");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 6");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ BOOL update_recv_orders(rdpUpdate* update, wStream* s)
|
||||
{
|
||||
if (!update_recv_order(update, s))
|
||||
{
|
||||
WLog_DBG(TAG, "update_recv_order() failed");
|
||||
WLog_ERR(TAG, "update_recv_order() failed");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -495,7 +495,7 @@ BOOL update_recv(rdpUpdate* update, wStream* s)
|
||||
|
||||
if (Stream_GetRemainingLength(s) < 2)
|
||||
{
|
||||
WLog_DBG(TAG, "Stream_GetRemainingLength(s) < 2");
|
||||
WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 2");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@ -510,7 +510,7 @@ BOOL update_recv(rdpUpdate* update, wStream* s)
|
||||
if (!update_recv_orders(update, s))
|
||||
{
|
||||
/* XXX: Do we have to call EndPaint? */
|
||||
WLog_DBG(TAG, "UPDATE_TYPE_ORDERS - update_recv_orders() failed");
|
||||
WLog_ERR(TAG, "UPDATE_TYPE_ORDERS - update_recv_orders() failed");
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
@ -518,7 +518,7 @@ BOOL update_recv(rdpUpdate* update, wStream* s)
|
||||
case UPDATE_TYPE_BITMAP:
|
||||
if (!update_read_bitmap_update(update, s, &update->bitmap_update))
|
||||
{
|
||||
WLog_DBG(TAG, "UPDATE_TYPE_BITMAP - update_read_bitmap_update() failed");
|
||||
WLog_ERR(TAG, "UPDATE_TYPE_BITMAP - update_read_bitmap_update() failed");
|
||||
return FALSE;
|
||||
}
|
||||
IFCALL(update->BitmapUpdate, context, &update->bitmap_update);
|
||||
@ -527,7 +527,7 @@ BOOL update_recv(rdpUpdate* update, wStream* s)
|
||||
case UPDATE_TYPE_PALETTE:
|
||||
if (!update_read_palette(update, s, &update->palette_update))
|
||||
{
|
||||
WLog_DBG(TAG, "UPDATE_TYPE_PALETTE - update_read_palette() failed");
|
||||
WLog_ERR(TAG, "UPDATE_TYPE_PALETTE - update_read_palette() failed");
|
||||
return FALSE;
|
||||
}
|
||||
IFCALL(update->Palette, context, &update->palette_update);
|
||||
|
Loading…
Reference in New Issue
Block a user