mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
Fixed warnings
This commit is contained in:
@@ -879,10 +879,10 @@ static BOOL rdp_recv_monitor_layout_pdu(rdpRdp* rdp, wStream* s)
|
||||
|
||||
for (monitor = monitorDefArray, index = 0; index < monitorCount; index++, monitor++)
|
||||
{
|
||||
Stream_Read_UINT32(s, monitor->left); /* left (4 bytes) */
|
||||
Stream_Read_UINT32(s, monitor->top); /* top (4 bytes) */
|
||||
Stream_Read_UINT32(s, monitor->right); /* right (4 bytes) */
|
||||
Stream_Read_UINT32(s, monitor->bottom); /* bottom (4 bytes) */
|
||||
Stream_Read_INT32(s, monitor->left); /* left (4 bytes) */
|
||||
Stream_Read_INT32(s, monitor->top); /* top (4 bytes) */
|
||||
Stream_Read_INT32(s, monitor->right); /* right (4 bytes) */
|
||||
Stream_Read_INT32(s, monitor->bottom); /* bottom (4 bytes) */
|
||||
Stream_Read_UINT32(s, monitor->flags); /* flags (4 bytes) */
|
||||
}
|
||||
|
||||
@@ -1781,7 +1781,6 @@ rdpRdp* rdp_new(rdpContext* context)
|
||||
{
|
||||
rdpRdp* rdp;
|
||||
DWORD flags;
|
||||
BOOL newSettings = FALSE;
|
||||
rdp = (rdpRdp*)calloc(1, sizeof(rdpRdp));
|
||||
|
||||
if (!rdp)
|
||||
@@ -1801,8 +1800,6 @@ rdpRdp* rdp_new(rdpContext* context)
|
||||
|
||||
if (!context->settings)
|
||||
goto fail;
|
||||
|
||||
newSettings = TRUE;
|
||||
}
|
||||
|
||||
rdp->settings = context->settings;
|
||||
|
||||
@@ -48,6 +48,10 @@ void gdi_video_geometry_init(rdpGdi* gdi, GeometryClientContext* geom)
|
||||
|
||||
void gdi_video_geometry_uninit(rdpGdi* gdi, GeometryClientContext* geom)
|
||||
{
|
||||
WINPR_ASSERT(gdi);
|
||||
WINPR_ASSERT(geom);
|
||||
WINPR_UNUSED(gdi);
|
||||
WINPR_UNUSED(geom);
|
||||
}
|
||||
|
||||
static VideoSurface* gdiVideoCreateSurface(VideoClientContext* video, UINT32 x, UINT32 y,
|
||||
@@ -61,7 +65,6 @@ static BOOL gdiVideoShowSurface(VideoClientContext* video, const VideoSurface* s
|
||||
{
|
||||
BOOL rc = FALSE;
|
||||
rdpGdi* gdi;
|
||||
RECTANGLE_16 surfaceRect;
|
||||
rdpUpdate* update;
|
||||
|
||||
WINPR_ASSERT(video);
|
||||
@@ -74,11 +77,6 @@ static BOOL gdiVideoShowSurface(VideoClientContext* video, const VideoSurface* s
|
||||
update = gdi->context->update;
|
||||
WINPR_ASSERT(update);
|
||||
|
||||
surfaceRect.left = surface->x;
|
||||
surfaceRect.top = surface->y;
|
||||
surfaceRect.right = surface->x + surface->w;
|
||||
surfaceRect.bottom = surface->y + surface->h;
|
||||
|
||||
if (!update_begin_paint(update))
|
||||
goto fail;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user