https://git.reactos.org/?p=reactos.git;a=commitdiff;h=adc86c2442e646d2d1086…
commit adc86c2442e646d2d108691a9b30415b9f3a8fc3
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Tue Jun 15 11:32:29 2021 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Jul 3 12:56:48 2021 +0200
[NETAPI32] Zero out lpNameBuffer in NetGetJoinInformation
This is needed, because for some reason, otherwise RPCRT4 will assume that whatever
value is in there is already the buffer and copy the string there.
Fixes exception in Chrome 48.
---
dll/win32/netapi32/wksta_new.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dll/win32/netapi32/wksta_new.c b/dll/win32/netapi32/wksta_new.c
index 29441bb52bc..0ec1d020a6a 100644
--- a/dll/win32/netapi32/wksta_new.c
+++ b/dll/win32/netapi32/wksta_new.c
@@ -327,6 +327,7 @@ NetGetJoinInformation(
if (lpNameBuffer == NULL || BufferType == NULL)
return ERROR_INVALID_PARAMETER;
+ *lpNameBuffer = NULL;
RpcTryExcept
{
status = NetrGetJoinInformation((LPWSTR)lpServer,