Fixed -Wshadow
This commit is contained in:
parent
31c1700c0c
commit
b56b09840a
@ -394,7 +394,7 @@ BOOL rdp_client_connect(rdpRdp* rdp)
|
||||
for (; now < dueDate; now = GetTickCount64())
|
||||
{
|
||||
HANDLE events[MAXIMUM_WAIT_OBJECTS] = { 0 };
|
||||
DWORD status = 0;
|
||||
DWORD wstatus = 0;
|
||||
DWORD nevents = freerdp_get_event_handles(rdp->context, events, ARRAYSIZE(events));
|
||||
if (!nevents)
|
||||
{
|
||||
@ -402,8 +402,8 @@ BOOL rdp_client_connect(rdpRdp* rdp)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
status = WaitForMultipleObjectsEx(nevents, events, FALSE, (dueDate - now), TRUE);
|
||||
switch (status)
|
||||
wstatus = WaitForMultipleObjectsEx(nevents, events, FALSE, (dueDate - now), TRUE);
|
||||
switch (wstatus)
|
||||
{
|
||||
case WAIT_TIMEOUT:
|
||||
/* will make us quit with a timeout */
|
||||
|
@ -1163,7 +1163,7 @@ static BOOL nla_encode_ts_credentials(rdpNla* nla)
|
||||
{ 4, FreeRDP_CspName } };
|
||||
WinPrAsn1_OctetString octet_string = { 0 };
|
||||
char* str;
|
||||
BOOL ret;
|
||||
BOOL res;
|
||||
|
||||
/* TSSmartCardCreds */
|
||||
if (!WinPrAsn1EncSeqContainer(enc))
|
||||
@ -1173,9 +1173,9 @@ static BOOL nla_encode_ts_credentials(rdpNla* nla)
|
||||
str = freerdp_settings_get_string_writable(settings, FreeRDP_Password);
|
||||
octet_string.len =
|
||||
ConvertToUnicode(CP_UTF8, 0, str, -1, (LPWSTR*)&octet_string.data, 0) * sizeof(WCHAR);
|
||||
ret = WinPrAsn1EncContextualOctetString(enc, 0, &octet_string);
|
||||
res = WinPrAsn1EncContextualOctetString(enc, 0, &octet_string);
|
||||
free(octet_string.data);
|
||||
if (!ret)
|
||||
if (!res)
|
||||
goto out;
|
||||
|
||||
/* cspData [1] SEQUENCE */
|
||||
|
@ -609,7 +609,6 @@ static state_run_t peer_recv_handle_licensing(freerdp_peer* client, wStream* s)
|
||||
{
|
||||
case LICENSE_STATE_INITIAL:
|
||||
{
|
||||
const rdpSettings* settings = rdp->settings;
|
||||
const BOOL required =
|
||||
freerdp_settings_get_bool(settings, FreeRDP_ServerLicenseRequired);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user