Fixed conditional warnings
This commit is contained in:
parent
d63817640f
commit
340f9dd775
@ -5676,7 +5676,7 @@ static BOOL FuzzPlanar(void)
|
||||
size_t dataSize = 0x10000;
|
||||
BYTE dstData[0x10000] = { 0 };
|
||||
|
||||
UINT32 DstFormat;
|
||||
UINT32 DstFormat = 0;
|
||||
UINT32 nDstStep;
|
||||
UINT32 nXDst;
|
||||
UINT32 nYDst;
|
||||
|
@ -341,13 +341,15 @@ static BOOL rts_write_auth_verifier(wStream* s, const auth_verifier_co_t* auth,
|
||||
Stream_Zero(s, auth_pad_length);
|
||||
}
|
||||
|
||||
#if defined(WITH_VERBOSE_WINPR_ASSERT) && (WITH_VERBOSE_WINPR_ASSERT != 0)
|
||||
WINPR_ASSERT(header->frag_length + 8ull > header->auth_length);
|
||||
{
|
||||
size_t pos = Stream_GetPosition(s);
|
||||
size_t apos = Stream_GetPosition(s);
|
||||
size_t expected = header->frag_length - header->auth_length - 8;
|
||||
|
||||
WINPR_ASSERT(pos == expected);
|
||||
WINPR_ASSERT(apos == expected);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!Stream_EnsureRemainingCapacity(s, sizeof(auth_verifier_co_t)))
|
||||
return FALSE;
|
||||
|
@ -269,7 +269,7 @@ static BOOL wts_read_drdynvc_pdu(rdpPeerChannel* channel)
|
||||
int Sp;
|
||||
int cbChId;
|
||||
UINT32 ChannelId;
|
||||
rdpPeerChannel* dvc;
|
||||
rdpPeerChannel* dvc = NULL;
|
||||
|
||||
WINPR_ASSERT(channel);
|
||||
WINPR_ASSERT(channel->vcm);
|
||||
|
@ -1,4 +1,6 @@
|
||||
unsigned char resources_FreeRDP_ico[] = {
|
||||
#include "FreeRDP.ico.h"
|
||||
|
||||
const unsigned char resources_FreeRDP_ico[] = {
|
||||
0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x32, 0x1c,
|
||||
0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00,
|
||||
0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x06,
|
||||
@ -453,4 +455,4 @@ unsigned char resources_FreeRDP_ico[] = {
|
||||
0xe0, 0x00, 0xf8, 0x7f, 0x93, 0x99, 0x6d, 0x99, 0x94, 0x53, 0x36, 0xc5, 0x00, 0x00, 0x00, 0x00,
|
||||
0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
|
||||
};
|
||||
unsigned int resources_FreeRDP_ico_len = 7240;
|
||||
const unsigned int resources_FreeRDP_ico_len = 7240;
|
||||
|
@ -782,7 +782,7 @@ static BOOL TestPrimitiveRgbToLumaChroma(primitives_t* prims, prim_size_t roi, U
|
||||
|
||||
for (x = 0; x < sizeof(formats) / sizeof(formats[0]); x++)
|
||||
{
|
||||
pstatus_t rc;
|
||||
pstatus_t rc = -1;
|
||||
const UINT32 DstFormat = formats[x];
|
||||
printf("Testing destination color format %s\n", FreeRDPGetColorFormatName(DstFormat));
|
||||
PROFILER_CREATE(rgbToYUV444, "RGBToYUV444-generic")
|
||||
|
@ -11,8 +11,8 @@ int TestPathMakePath(int argc, char* argv[])
|
||||
int x;
|
||||
size_t baseLen;
|
||||
BOOL success;
|
||||
char tmp[64];
|
||||
char* path;
|
||||
char tmp[64] = { 0 };
|
||||
char* path = NULL;
|
||||
char* cur;
|
||||
char delim = PathGetSeparatorA(0);
|
||||
char* base = GetKnownPath(KNOWN_PATH_TEMP);
|
||||
|
Loading…
Reference in New Issue
Block a user