[winpr,stream] log Stream_Read_UTF16_String failures

This commit is contained in:
Armin Novak 2023-03-05 20:57:36 +01:00 committed by akallabeth
parent fb60145685
commit 9a7432d23c

View File

@ -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++)