netapi32: Fix off-by-one errors in ACCESS_QueryAdminDisplayInformation and ACCESS_QueryGuestDisplayInformation.
This commit is contained in:
parent
2b74e774f9
commit
0450235db4
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue