windows: fix compilation and warnings
This commit is contained in:
parent
06502e6a91
commit
af81a91ea7
@ -318,7 +318,7 @@ static int freerdp_client_rdp_file_set_string(rdpFile* file, const char* name, c
|
||||
else
|
||||
standard = 1;
|
||||
|
||||
if (tmp && !(*tmp = strdup(value)))
|
||||
if (tmp && !(*tmp = _strdup(value)))
|
||||
return -1;
|
||||
|
||||
if (index >= 0)
|
||||
|
@ -11,8 +11,8 @@ int TestSettings(int argc, char* argv[])
|
||||
printf("Couldn't create settings\n");
|
||||
return -1;
|
||||
}
|
||||
settings->Username = strdup("abcdefg");
|
||||
settings->Password = strdup("xyz");
|
||||
settings->Username = _strdup("abcdefg");
|
||||
settings->Password = _strdup("xyz");
|
||||
cloned = freerdp_settings_clone(settings);
|
||||
if (!cloned)
|
||||
{
|
||||
|
@ -120,7 +120,7 @@ int ntlm_SetContextTargetName(NTLM_CONTEXT* context, char* TargetName)
|
||||
if (!GetComputerNameExA(ComputerNameDnsHostname, computerName, &nSize))
|
||||
return -1;
|
||||
|
||||
name = strdup(computerName);
|
||||
name = _strdup(computerName);
|
||||
if (!name)
|
||||
return -1;
|
||||
|
||||
|
@ -178,7 +178,7 @@ int ntlm_get_target_computer_name(PUNICODE_STRING pName, COMPUTER_NAME_FORMAT ty
|
||||
if (!GetComputerNameExA(type, computerName, &nSize))
|
||||
return -1;
|
||||
|
||||
name = strdup(computerName);
|
||||
name = _strdup(computerName);
|
||||
if (!name)
|
||||
return -1;
|
||||
|
||||
|
@ -314,7 +314,7 @@ char* x509_get_default_name()
|
||||
if (!GetComputerNameExA(ComputerNameNetBIOS, computerName, &nSize))
|
||||
return NULL;
|
||||
|
||||
ret = strdup(computerName);
|
||||
ret = _strdup(computerName);
|
||||
if (!ret)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user