mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #2603 from hardening/rail_empty_title_fix
Fix empty window title
This commit is contained in:
commit
e290e55554
|
@ -43,6 +43,14 @@ static BOOL rail_read_unicode_string(wStream* s, RAIL_UNICODE_STRING* unicode_st
|
|||
if (Stream_GetRemainingLength(s) < new_len)
|
||||
return FALSE;
|
||||
|
||||
if (!new_len)
|
||||
{
|
||||
free(unicode_string->string);
|
||||
unicode_string->string = NULL;
|
||||
unicode_string->length = 0;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
new_str = (BYTE*) realloc(unicode_string->string, new_len);
|
||||
if (!new_str)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue