diff --git a/libfreerdp/core/gateway/rpc_client.c b/libfreerdp/core/gateway/rpc_client.c index dc41cc95d..f1efaa9c4 100644 --- a/libfreerdp/core/gateway/rpc_client.c +++ b/libfreerdp/core/gateway/rpc_client.c @@ -1011,9 +1011,6 @@ BOOL rpc_client_write_call(rdpRpc* rpc, wStream* s, UINT16 opnum) size = credssp_auth_trailer_size(auth); - if (size < 0) - goto fail; - request_pdu.header = rpc_pdu_header_init(rpc); request_pdu.header.ptype = PTYPE_REQUEST; request_pdu.header.pfc_flags = PFC_FIRST_FRAG | PFC_LAST_FRAG; diff --git a/rdtk/librdtk/rdtk_surface.c b/rdtk/librdtk/rdtk_surface.c index 706a07c5d..75401ed4c 100644 --- a/rdtk/librdtk/rdtk_surface.c +++ b/rdtk/librdtk/rdtk_surface.c @@ -55,7 +55,7 @@ rdtkSurface* rdtk_surface_new(rdtkEngine* engine, uint8_t* data, uint16_t width, surface->width = width; surface->height = height; - if (scanline < 0) + if (scanline == 0) scanline = width * 4; surface->scanline = scanline; diff --git a/server/shadow/X11/x11_shadow.c b/server/shadow/X11/x11_shadow.c index f60602746..c2028cf05 100644 --- a/server/shadow/X11/x11_shadow.c +++ b/server/shadow/X11/x11_shadow.c @@ -609,8 +609,8 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem) UINT32 x, y; UINT32 nXSrc; UINT32 nYSrc; - UINT32 nXDst; - UINT32 nYDst; + INT64 nXDst; + INT64 nYDst; UINT32 nWidth; UINT32 nHeight; UINT32 nSrcStep; @@ -641,7 +641,7 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem) if (nXDst >= nWidth) return 1; - nXSrc = nXDst; + nXSrc = (UINT32)nXDst; nWidth -= nXDst; nXDst = 0; } @@ -656,7 +656,7 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem) if (nYDst >= nHeight) return 1; - nYSrc = nYDst; + nYSrc = (UINT32)nYDst; nHeight -= nYDst; nYDst = 0; }