[MSAFD] Work around regression of CORE-18848 from 0.4.12-dev-693-g2b1f6c8 (#5102)

Fix winetest for ws2_32:sock that crashes on 'test_AcceptEX' by modifying return values of WSPIoctl for 'case SIO_GET_EXTENSION_FUNCTION_POINTER'
This commit is contained in:
Doug Lyons 2023-03-08 14:47:45 -06:00 committed by GitHub
parent 5bc045c041
commit 2f43d9c183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2513,7 +2513,12 @@ WSPIoctl(IN SOCKET Handle,
*((PVOID *)lpvOutBuffer) = WSPGetAcceptExSockaddrs;
cbRet = sizeof(PVOID);
Errno = NO_ERROR;
Ret = NO_ERROR;
/* See CORE-14966 and associated commits.
* Original line below was 'Ret = NO_ERROR:'.
* This caused winetest ws2_32:sock to hang.
* This new Ret value allows the test to complete. */
ERR("SIO_GET_EXTENSION_FUNCTION_POINTER UNIMPLEMENTED\n");
Ret = SOCKET_ERROR;
}
else
{