Fixed missing initialization warnings.

This commit is contained in:
Armin Novak 2017-12-21 11:04:32 +01:00
parent bb7ba6ff26
commit e4766c656e
2 changed files with 22 additions and 10 deletions

View File

@ -1021,7 +1021,7 @@ static void ap_integer_decrement_le(BYTE* number, int size)
SECURITY_STATUS nla_encrypt_public_key_echo(rdpNla* nla) SECURITY_STATUS nla_encrypt_public_key_echo(rdpNla* nla)
{ {
SecBuffer Buffers[2] = { 0 }; SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message; SecBufferDesc Message;
SECURITY_STATUS status; SECURITY_STATUS status;
int public_key_length; int public_key_length;
@ -1079,7 +1079,7 @@ SECURITY_STATUS nla_decrypt_public_key_echo(rdpNla* nla)
BYTE* public_key2 = NULL; BYTE* public_key2 = NULL;
int public_key_length = 0; int public_key_length = 0;
int signature_length; int signature_length;
SecBuffer Buffers[2] = { 0 }; SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message; SecBufferDesc Message;
SECURITY_STATUS status; SECURITY_STATUS status;
signature_length = nla->pubKeyAuth.cbBuffer - nla->PublicKey.cbBuffer; signature_length = nla->pubKeyAuth.cbBuffer - nla->PublicKey.cbBuffer;
@ -1425,7 +1425,7 @@ static BOOL nla_encode_ts_credentials(rdpNla* nla)
static SECURITY_STATUS nla_encrypt_ts_credentials(rdpNla* nla) static SECURITY_STATUS nla_encrypt_ts_credentials(rdpNla* nla)
{ {
SecBuffer Buffers[2] = { 0 }; SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message; SecBufferDesc Message;
SECURITY_STATUS status; SECURITY_STATUS status;
@ -1479,7 +1479,7 @@ static SECURITY_STATUS nla_decrypt_ts_credentials(rdpNla* nla)
int length; int length;
BYTE* buffer; BYTE* buffer;
ULONG pfQOP; ULONG pfQOP;
SecBuffer Buffers[2] = { 0 }; SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message; SecBufferDesc Message;
SECURITY_STATUS status; SECURITY_STATUS status;

View File

@ -830,7 +830,13 @@ static INLINE pstatus_t general_RGBToAVC444YUV_BGRX(
*/ */
UINT32 x, y, n, numRows, numCols; UINT32 x, y, n, numRows, numCols;
BOOL evenRow = TRUE; BOOL evenRow = TRUE;
BYTE* b1, *b2, *b3, *b4, *b5, *b6, *b7; BYTE* b1 = NULL;
BYTE* b2 = NULL;
BYTE* b3 = NULL;
BYTE* b4 = NULL;
BYTE* b5 = NULL;
BYTE* b6 = NULL;
BYTE* b7 = NULL;
const BYTE* pMaxSrc = pSrc + (roi->height - 1) * srcStep; const BYTE* pMaxSrc = pSrc + (roi->height - 1) * srcStep;
numRows = (roi->height + 1) & ~1; numRows = (roi->height + 1) & ~1;
numCols = (roi->width + 1) & ~1; numCols = (roi->width + 1) & ~1;
@ -965,7 +971,13 @@ static INLINE pstatus_t general_RGBToAVC444YUV_ANY(
const UINT32 bpp = GetBytesPerPixel(srcFormat); const UINT32 bpp = GetBytesPerPixel(srcFormat);
UINT32 x, y, n, numRows, numCols; UINT32 x, y, n, numRows, numCols;
BOOL evenRow = TRUE; BOOL evenRow = TRUE;
BYTE* b1, *b2, *b3, *b4, *b5, *b6, *b7; BYTE* b1 = NULL;
BYTE* b2 = NULL;
BYTE* b3 = NULL;
BYTE* b4 = NULL;
BYTE* b5 = NULL;
BYTE* b6 = NULL;
BYTE* b7 = NULL;
const BYTE* pMaxSrc = pSrc + (roi->height - 1) * srcStep; const BYTE* pMaxSrc = pSrc + (roi->height - 1) * srcStep;
numRows = (roi->height + 1) & ~1; numRows = (roi->height + 1) & ~1;
numCols = (roi->width + 1) & ~1; numCols = (roi->width + 1) & ~1;