https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c7c0b09eb6ea18e180d77d38224ed535699001aa

commit c7c0b09eb6ea18e180d77d38224ed535699001aa
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Sat Oct 17 16:55:56 2020 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Sat Oct 17 16:55:56 2020 +0200

    [BASESRV] Use the correct value for the last parameter of a 
CsrValidateMessageBuffer() call.
---
 subsystems/win/basesrv/nls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subsystems/win/basesrv/nls.c b/subsystems/win/basesrv/nls.c
index de4027bbeb2..ef918667188 100644
--- a/subsystems/win/basesrv/nls.c
+++ b/subsystems/win/basesrv/nls.c
@@ -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 */

Reply via email to