netapi32: Fix off-by-one errors in ACCESS_QueryAdminDisplayInformation and ACCESS_QueryGuestDisplayInformation.

This commit is contained in:
Rob Shearman 2009-12-04 15:09:02 +00:00 committed by Alexandre Julliard
parent 2b74e774f9
commit 0450235db4
1 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ static void ACCESS_QueryAdminDisplayInformation(PNET_DISPLAY_USER *buf, PDWORD p
PNET_DISPLAY_USER usr; PNET_DISPLAY_USER usr;
/* set up buffer */ /* set up buffer */
name_sz = lstrlenW(sAdminUserName); name_sz = lstrlenW(sAdminUserName) + 1;
comment_sz = 1; comment_sz = 1;
full_name_sz = 1; full_name_sz = 1;
@ -533,7 +533,7 @@ static void ACCESS_QueryGuestDisplayInformation(PNET_DISPLAY_USER *buf, PDWORD p
PNET_DISPLAY_USER usr; PNET_DISPLAY_USER usr;
/* set up buffer */ /* set up buffer */
name_sz = lstrlenW(sGuestUserName); name_sz = lstrlenW(sGuestUserName) + 1;
comment_sz = 1; comment_sz = 1;
full_name_sz = 1; full_name_sz = 1;