https://git.reactos.org/?p=reactos.git;a=commitdiff;h=462418fe38aa92920a755…
commit 462418fe38aa92920a755d5d1b5dc6dce32a035b
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Mar 9 20:26:00 2019 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Mar 9 20:26:00 2019 +0100
[NETAPI32] Initialize parm_err
---
dll/win32/netapi32/group_new.c | 3 +++
dll/win32/netapi32/local_group.c | 3 +++
dll/win32/netapi32/user.c | 3 +++
3 files changed, 9 insertions(+)
diff --git a/dll/win32/netapi32/group_new.c b/dll/win32/netapi32/group_new.c
index 9c3234abe5..027f1f7273 100644
--- a/dll/win32/netapi32/group_new.c
+++ b/dll/win32/netapi32/group_new.c
@@ -306,6 +306,9 @@ NetGroupAdd(
TRACE("NetGroupAdd(%s, %d, %p, %p)\n",
debugstr_w(servername), level, buf, parm_err);
+ if (parm_err != NULL)
+ *parm_err = PARM_ERROR_NONE;
+
/* Initialize the Server name*/
if (servername != NULL)
RtlInitUnicodeString(&ServerName, servername);
diff --git a/dll/win32/netapi32/local_group.c b/dll/win32/netapi32/local_group.c
index 798248d8fc..1ef5aa64f9 100644
--- a/dll/win32/netapi32/local_group.c
+++ b/dll/win32/netapi32/local_group.c
@@ -352,6 +352,9 @@ NetLocalGroupAdd(
TRACE("(%s %d %p %p) stub!\n", debugstr_w(servername), level, buf,
parm_err);
+ if (parm_err != NULL)
+ *parm_err = PARM_ERROR_NONE;
+
/* Initialize the Server name*/
if (servername != NULL)
RtlInitUnicodeString(&ServerName, servername);
diff --git a/dll/win32/netapi32/user.c b/dll/win32/netapi32/user.c
index d105634a52..3e29bc48c6 100644
--- a/dll/win32/netapi32/user.c
+++ b/dll/win32/netapi32/user.c
@@ -2060,6 +2060,9 @@ NetUserAdd(LPCWSTR servername,
TRACE("(%s, %d, %p, %p)\n", debugstr_w(servername), level, bufptr,
parm_err);
+ if (parm_err != NULL)
+ *parm_err = PARM_ERROR_NONE;
+
/* Check the info level */
switch (level)
{