mirror of https://github.com/FreeRDP/FreeRDP
[client,windows] fix const warnings
This commit is contained in:
parent
78cea184aa
commit
ffacfc0432
|
@ -41,13 +41,11 @@ static void AddDefaultSettings_I(rdpSettings* settings, size_t idHostname, size_
|
||||||
{
|
{
|
||||||
static const PSTR TERMSRV = "TERMSRV/%s";
|
static const PSTR TERMSRV = "TERMSRV/%s";
|
||||||
|
|
||||||
PSTR TargetName = 0;
|
PSTR TargetName = NULL;
|
||||||
PSTR UserName = 0;
|
PSTR UserName = NULL;
|
||||||
PSTR Password = 0;
|
PSTR Password = NULL;
|
||||||
PWSTR UserNameW = 0;
|
PWSTR TargetNameW = NULL;
|
||||||
PWSTR PasswordW = 0;
|
PWSTR ServerHostnameW = NULL;
|
||||||
PWSTR TargetNameW = 0;
|
|
||||||
PWSTR ServerHostnameW = 0;
|
|
||||||
PCREDENTIALW Credential = { 0 };
|
PCREDENTIALW Credential = { 0 };
|
||||||
|
|
||||||
PCSTR ServerHostname = freerdp_settings_get_string(settings, idHostname);
|
PCSTR ServerHostname = freerdp_settings_get_string(settings, idHostname);
|
||||||
|
@ -81,7 +79,8 @@ static void AddDefaultSettings_I(rdpSettings* settings, size_t idHostname, size_
|
||||||
|
|
||||||
if (!bExistPassword)
|
if (!bExistPassword)
|
||||||
{
|
{
|
||||||
PasswordW = ValidateString(Credential->CredentialBlob, Credential->CredentialBlobSize);
|
const WCHAR* PasswordW =
|
||||||
|
ValidateString(Credential->CredentialBlob, Credential->CredentialBlobSize);
|
||||||
|
|
||||||
if (PasswordW)
|
if (PasswordW)
|
||||||
{
|
{
|
||||||
|
@ -92,7 +91,7 @@ static void AddDefaultSettings_I(rdpSettings* settings, size_t idHostname, size_
|
||||||
|
|
||||||
if (!bExistUserName)
|
if (!bExistUserName)
|
||||||
{
|
{
|
||||||
UserNameW = Credential->UserName;
|
const WCHAR* UserNameW = Credential->UserName;
|
||||||
|
|
||||||
if (UserNameW)
|
if (UserNameW)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue