mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[NETAPI32]: Fix misusage of a pointer, that caused a crash when using the command "net localgroup". Address one of the problems described in CORE-11081.
Note that those ((ULONG_PTR)the_pointer + sizeof(type_pointed_by_the_pointer)) could be somewhat short cut into: (the_pointer + 1) (with the_pointer being of type *type_pointed_by_the_pointer). But anyway... svn path=/trunk/; revision=73457
This commit is contained in:
parent
ea3f263fca
commit
17b4930a9d
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ BuildAliasInfoBuffer(PALIAS_GENERAL_INFORMATION AliasInfo,
|
|||
case 0:
|
||||
LocalInfo0 = (PLOCALGROUP_INFO_0)LocalBuffer;
|
||||
|
||||
Ptr = (LPWSTR)LocalInfo0++;
|
||||
Ptr = (LPWSTR)((ULONG_PTR)LocalInfo0 + sizeof(LOCALGROUP_INFO_0));
|
||||
LocalInfo0->lgrpi0_name = Ptr;
|
||||
|
||||
memcpy(LocalInfo0->lgrpi0_name,
|
||||
|
|
Loading…
Reference in a new issue