projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETAPI32]: Fix misusage of a pointer, that caused a crash when using the command...
[reactos.git]
/
reactos
/
dll
/
win32
/
netapi32
/
local_group.c
diff --git
a/reactos/dll/win32/netapi32/local_group.c
b/reactos/dll/win32/netapi32/local_group.c
index
1b00ea2
..
798248d
100644
(file)
--- a/
reactos/dll/win32/netapi32/local_group.c
+++ b/
reactos/dll/win32/netapi32/local_group.c
@@
-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,