[winpr,stream] fix Stream_Read_UTF16_String
Fix wrong arguments for stream length check
This commit is contained in:
parent
34c056e163
commit
41cb69b135
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user