https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2210d23fc7f3fb939ce47…
commit 2210d23fc7f3fb939ce47d8cc3c0ce4c59396c86
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Wed Jul 14 15:22:17 2021 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Wed Jul 14 15:22:17 2021 +0200
[NETAPI32] Return the old values for NetGetJoinInformation() to fix Chrome Installer
regression
Should fix CORE-17679
---
dll/win32/netapi32/wksta_new.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dll/win32/netapi32/wksta_new.c b/dll/win32/netapi32/wksta_new.c
index 0ec1d020a6a..2739a6c86e0 100644
--- a/dll/win32/netapi32/wksta_new.c
+++ b/dll/win32/netapi32/wksta_new.c
@@ -319,7 +319,7 @@ NetGetJoinInformation(
_Out_ LPWSTR *lpNameBuffer,
_Out_ PNETSETUP_JOIN_STATUS BufferType)
{
- NET_API_STATUS status;
+ NET_API_STATUS status = NERR_Success;
TRACE("NetGetJoinInformation(%s %p %p)\n",
debugstr_w(lpServer), lpNameBuffer, BufferType);
@@ -327,6 +327,8 @@ NetGetJoinInformation(
if (lpNameBuffer == NULL || BufferType == NULL)
return ERROR_INVALID_PARAMETER;
+ /* Disabled because of CORE-17679 */
+#if 0
*lpNameBuffer = NULL;
RpcTryExcept
{
@@ -339,6 +341,10 @@ NetGetJoinInformation(
status = I_RpcMapWin32Status(RpcExceptionCode());
}
RpcEndExcept;
+#endif
+
+ *lpNameBuffer = NULL;
+ *BufferType = NetSetupUnknownStatus;
return status;
}