mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Fixed tautological-unsigned-zero-compare
This commit is contained in:
parent
080e44fc96
commit
59eae5dbc3
@ -1011,9 +1011,6 @@ BOOL rpc_client_write_call(rdpRpc* rpc, wStream* s, UINT16 opnum)
|
|||||||
|
|
||||||
size = credssp_auth_trailer_size(auth);
|
size = credssp_auth_trailer_size(auth);
|
||||||
|
|
||||||
if (size < 0)
|
|
||||||
goto fail;
|
|
||||||
|
|
||||||
request_pdu.header = rpc_pdu_header_init(rpc);
|
request_pdu.header = rpc_pdu_header_init(rpc);
|
||||||
request_pdu.header.ptype = PTYPE_REQUEST;
|
request_pdu.header.ptype = PTYPE_REQUEST;
|
||||||
request_pdu.header.pfc_flags = PFC_FIRST_FRAG | PFC_LAST_FRAG;
|
request_pdu.header.pfc_flags = PFC_FIRST_FRAG | PFC_LAST_FRAG;
|
||||||
|
@ -55,7 +55,7 @@ rdtkSurface* rdtk_surface_new(rdtkEngine* engine, uint8_t* data, uint16_t width,
|
|||||||
surface->width = width;
|
surface->width = width;
|
||||||
surface->height = height;
|
surface->height = height;
|
||||||
|
|
||||||
if (scanline < 0)
|
if (scanline == 0)
|
||||||
scanline = width * 4;
|
scanline = width * 4;
|
||||||
|
|
||||||
surface->scanline = scanline;
|
surface->scanline = scanline;
|
||||||
|
@ -609,8 +609,8 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
|
|||||||
UINT32 x, y;
|
UINT32 x, y;
|
||||||
UINT32 nXSrc;
|
UINT32 nXSrc;
|
||||||
UINT32 nYSrc;
|
UINT32 nYSrc;
|
||||||
UINT32 nXDst;
|
INT64 nXDst;
|
||||||
UINT32 nYDst;
|
INT64 nYDst;
|
||||||
UINT32 nWidth;
|
UINT32 nWidth;
|
||||||
UINT32 nHeight;
|
UINT32 nHeight;
|
||||||
UINT32 nSrcStep;
|
UINT32 nSrcStep;
|
||||||
@ -641,7 +641,7 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
|
|||||||
if (nXDst >= nWidth)
|
if (nXDst >= nWidth)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
nXSrc = nXDst;
|
nXSrc = (UINT32)nXDst;
|
||||||
nWidth -= nXDst;
|
nWidth -= nXDst;
|
||||||
nXDst = 0;
|
nXDst = 0;
|
||||||
}
|
}
|
||||||
@ -656,7 +656,7 @@ static int x11_shadow_blend_cursor(x11ShadowSubsystem* subsystem)
|
|||||||
if (nYDst >= nHeight)
|
if (nYDst >= nHeight)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
nYSrc = nYDst;
|
nYSrc = (UINT32)nYDst;
|
||||||
nHeight -= nYDst;
|
nHeight -= nYDst;
|
||||||
nYDst = 0;
|
nYDst = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user