[winpr,stream] fix Stream_Read_UTF16_String

Fix wrong arguments for stream length check
This commit is contained in:
akallabeth 2023-03-08 14:36:54 +01:00 committed by Martin Fleisz
parent 34c056e163
commit 41cb69b135

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_CheckAndLogRequiredLengthOfSizeWLog(STREAM_TAG, s, length, sizeof(WCHAR)))
if (!Stream_CheckAndLogRequiredLengthOfSize(STREAM_TAG, s, length, sizeof(WCHAR)))
return FALSE;
for (x = 0; x < length; x++)