[NETAPI32] Return the old values for NetGetJoinInformation() to fix Chrome Installer regression

Should fix CORE-17679
This commit is contained in:
Eric Kohl 2021-07-14 15:22:17 +02:00
parent 5a9c77b3be
commit 2210d23fc7

View file

@ -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;
}