mirror of https://github.com/FreeRDP/FreeRDP
Fixed windows floatbar title.
This commit is contained in:
parent
4fd8987f5d
commit
9166df355b
|
@ -286,7 +286,7 @@ static WCHAR* wf_window_get_title(rdpSettings* settings)
|
||||||
BOOL port;
|
BOOL port;
|
||||||
WCHAR* windowTitle;
|
WCHAR* windowTitle;
|
||||||
size_t size;
|
size_t size;
|
||||||
WCHAR* name;
|
char* name;
|
||||||
WCHAR prefix[] = L"FreeRDP:";
|
WCHAR prefix[] = L"FreeRDP:";
|
||||||
|
|
||||||
if (!settings)
|
if (!settings)
|
||||||
|
@ -309,9 +309,9 @@ static WCHAR* wf_window_get_title(rdpSettings* settings)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!port)
|
if (!port)
|
||||||
_snwprintf_s(windowTitle, size, _TRUNCATE, L"%S %S", prefix, name);
|
_snwprintf_s(windowTitle, size, _TRUNCATE, L"%s %S", prefix, name);
|
||||||
else
|
else
|
||||||
_snwprintf_s(windowTitle, size, _TRUNCATE, L"%S %S:%u", prefix, name, settings->ServerPort);
|
_snwprintf_s(windowTitle, size, _TRUNCATE, L"%s %S:%u", prefix, name, settings->ServerPort);
|
||||||
|
|
||||||
return windowTitle;
|
return windowTitle;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue