mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[BASESRV] Use the correct value for the last parameter of a CsrValidateMessageBuffer() call.
This commit is contained in:
parent
bd2a40d57b
commit
c7c0b09eb6
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ CSR_API(BaseSrvNlsGetUserInfo)
|
||||||
PBASE_NLS_GET_USER_INFO NlsMsg = &((PBASE_API_MESSAGE)ApiMessage)->Data.NlsGetUserInfo;
|
PBASE_NLS_GET_USER_INFO NlsMsg = &((PBASE_API_MESSAGE)ApiMessage)->Data.NlsGetUserInfo;
|
||||||
|
|
||||||
/* Make sure the buffer is valid and of the right size */
|
/* 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)))
|
(NlsMsg->Size == sizeof(NLS_USER_INFO)))
|
||||||
{
|
{
|
||||||
/* Acquire the lock to prevent updates while we copy */
|
/* Acquire the lock to prevent updates while we copy */
|
||||||
|
|
Loading…
Reference in a new issue