[BASESRV] Use the correct value for the last parameter of a CsrValidateMessageBuffer() call.

This commit is contained in:
Hermès Bélusca-Maïto 2020-10-17 16:55:56 +02:00
parent bd2a40d57b
commit c7c0b09eb6
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -338,7 +338,7 @@ CSR_API(BaseSrvNlsGetUserInfo)
PBASE_NLS_GET_USER_INFO NlsMsg = &((PBASE_API_MESSAGE)ApiMessage)->Data.NlsGetUserInfo;
/* Make sure the buffer is valid and of the right size */
if ((CsrValidateMessageBuffer(ApiMessage, &NlsMsg->NlsUserInfo, NlsMsg->Size, TRUE)) &&
if ((CsrValidateMessageBuffer(ApiMessage, &NlsMsg->NlsUserInfo, NlsMsg->Size, sizeof(BYTE))) &&
(NlsMsg->Size == sizeof(NLS_USER_INFO)))
{
/* Acquire the lock to prevent updates while we copy */