mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
[winpr,stream] log Stream_Read_UTF16_String failures
This commit is contained in:
@@ -306,7 +306,7 @@ BOOL Stream_Read_UTF16_String(wStream* s, WCHAR* dst, size_t length)
|
||||
WINPR_ASSERT(s);
|
||||
WINPR_ASSERT(dst);
|
||||
|
||||
if (Stream_GetRemainingLength(s) / sizeof(WCHAR) < length)
|
||||
if (!Stream_CheckAndLogRequiredLengthOfSizeWLog(STREAM_TAG, s, length, sizeof(WCHAR)))
|
||||
return FALSE;
|
||||
|
||||
for (x = 0; x < length; x++)
|
||||
|
||||
Reference in New Issue
Block a user