Merge pull request #5082 from akallabeth/win_env_fix
Fix #4909: Do not initialize HOME environment variable as it is no longer used.
This commit is contained in:
commit
47066c25ed
@ -878,14 +878,6 @@ static BOOL wfreerdp_client_global_init(void)
|
|||||||
{
|
{
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
|
|
||||||
if (!getenv("HOME"))
|
|
||||||
{
|
|
||||||
char home[MAX_PATH * 2] = "HOME=";
|
|
||||||
strcat(home, getenv("HOMEDRIVE"));
|
|
||||||
strcat(home, getenv("HOMEPATH"));
|
|
||||||
_putenv(home);
|
|
||||||
}
|
|
||||||
|
|
||||||
WSAStartup(0x101, &wsaData);
|
WSAStartup(0x101, &wsaData);
|
||||||
#if defined(WITH_DEBUG) || defined(_DEBUG)
|
#if defined(WITH_DEBUG) || defined(_DEBUG)
|
||||||
wf_create_console();
|
wf_create_console();
|
||||||
|
@ -247,14 +247,6 @@ DWORD WINAPI wf_peer_main_loop(LPVOID lpParam)
|
|||||||
wfPeerContext* context;
|
wfPeerContext* context;
|
||||||
freerdp_peer* client = (freerdp_peer*) lpParam;
|
freerdp_peer* client = (freerdp_peer*) lpParam;
|
||||||
|
|
||||||
if (!getenv("HOME"))
|
|
||||||
{
|
|
||||||
char home[MAX_PATH * 2] = "HOME=";
|
|
||||||
strcat(home, getenv("HOMEDRIVE"));
|
|
||||||
strcat(home, getenv("HOMEPATH"));
|
|
||||||
_putenv(home);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!wf_peer_init(client))
|
if (!wf_peer_init(client))
|
||||||
goto fail_peer_init;
|
goto fail_peer_init;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user