if ((!settings->Username) || (!strlen(settings->Username))
|| (((!settings->Password) || (!strlen(settings->Password)))
- && (!settings->RedirectionPassword)))
+ && (!settings->RedirectionPassword)))
{
PromptPassword = TRUE;
}
if (settings->RedirectionPassword && settings->RedirectionPasswordLength > 0)
{
if (sspi_SetAuthIdentityWithUnicodePassword(nla->identity, settings->Username, settings->Domain,
- (UINT16*) settings->RedirectionPassword,
- settings->RedirectionPasswordLength / sizeof(WCHAR) - 1) < 0)
+ (UINT16*) settings->RedirectionPassword,
+ settings->RedirectionPasswordLength / sizeof(WCHAR) - 1) < 0)
return -1;
}
else
{
if (sspi_SetAuthIdentity(nla->identity, settings->Username, settings->Domain,
- settings->Password) < 0)
+ settings->Password) < 0)
return -1;
}
}
SECURITY_STATUS nla_encrypt_public_key_echo(rdpNla* nla)
{
- SecBuffer Buffers[2] = { 0 };
+ SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message;
SECURITY_STATUS status;
int public_key_length;
BYTE* public_key2 = NULL;
int public_key_length = 0;
int signature_length;
- SecBuffer Buffers[2] = { 0 };
+ SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message;
SECURITY_STATUS status;
signature_length = nla->pubKeyAuth.cbBuffer - nla->PublicKey.cbBuffer;
static SECURITY_STATUS nla_encrypt_ts_credentials(rdpNla* nla)
{
- SecBuffer Buffers[2] = { 0 };
+ SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message;
SECURITY_STATUS status;
int length;
BYTE* buffer;
ULONG pfQOP;
- SecBuffer Buffers[2] = { 0 };
+ SecBuffer Buffers[2] = { { 0 } };
SecBufferDesc Message;
SECURITY_STATUS status;
*/
UINT32 x, y, n, numRows, numCols;
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;
numRows = (roi->height + 1) & ~1;
numCols = (roi->width + 1) & ~1;
const UINT32 bpp = GetBytesPerPixel(srcFormat);
UINT32 x, y, n, numRows, numCols;
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;
numRows = (roi->height + 1) & ~1;
numCols = (roi->width + 1) & ~1;