diff --git a/client/Windows/wfreerdp.c b/client/Windows/wfreerdp.c index f4dad7c5a..e3dc679f6 100644 --- a/client/Windows/wfreerdp.c +++ b/client/Windows/wfreerdp.c @@ -598,6 +598,14 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine WSADATA wsa_data; WNDCLASSEX wnd_cls; + if (NULL == getenv("HOME")) + { + char home[MAX_PATH * 2] = "HOME="; + strcat(home, getenv("HOMEDRIVE")); + strcat(home, getenv("HOMEPATH")); + _putenv(home); + } + if (WSAStartup(0x101, &wsa_data) != 0) return 1;