mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[MSTSC] Send computer name as client name when available. Patch by Stas'M. Thanks. CORE-13237
svn path=/trunk/; revision=74567
This commit is contained in:
parent
4ed5e28c51
commit
988b6396aa
1 changed files with 5 additions and 1 deletions
|
@ -1125,6 +1125,7 @@ wWinMain(HINSTANCE hInstance,
|
|||
pRdpSettings))
|
||||
{
|
||||
char szValue[MAXVALUE];
|
||||
DWORD dwSize = MAXVALUE;
|
||||
|
||||
uni_to_str(szValue, GetStringFromSettings(pRdpSettings, L"full address"));
|
||||
|
||||
|
@ -1134,6 +1135,9 @@ wWinMain(HINSTANCE hInstance,
|
|||
uni_to_str(szValue, GetStringFromSettings(pRdpSettings, L"username"));
|
||||
SetDomainAndUsername(szValue);
|
||||
strcpy(g_password, "");
|
||||
if (GetComputerNameA(szValue, &dwSize))
|
||||
strcpy(g_hostname, szValue);
|
||||
else
|
||||
strcpy(g_hostname, tcp_get_address());
|
||||
g_server_depth = GetIntegerFromSettings(pRdpSettings, L"session bpp");
|
||||
g_screen_width = GetSystemMetrics(SM_CXSCREEN);
|
||||
|
|
Loading…
Reference in a new issue