mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,info] Fix rdp_info_read_string conversion check
This commit is contained in:
committed by
akallabeth
parent
ef5c0e78ab
commit
f59c98eebe
@@ -1084,7 +1084,7 @@ static BOOL rdp_info_read_string(const char* what, wStream* s, size_t size, size
|
||||
|
||||
size_t len = 0;
|
||||
char* rc = ConvertWCharNToUtf8Alloc(str, size / sizeof(WCHAR), &len);
|
||||
if (!rc || (len == 0))
|
||||
if (!rc)
|
||||
{
|
||||
WLog_ERR(TAG, "failed to convert the %s string", what);
|
||||
free(rc);
|
||||
|
||||
Reference in New Issue
Block a user