https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2f43d9c18338722999f18630dabd77821a1d79cb

commit 2f43d9c18338722999f18630dabd77821a1d79cb
Author:     Doug Lyons <[email protected]>
AuthorDate: Wed Mar 8 14:47:45 2023 -0600
Commit:     GitHub <[email protected]>
CommitDate: Wed Mar 8 21:47:45 2023 +0100

    [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'
---
 dll/win32/msafd/misc/dllmain.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dll/win32/msafd/misc/dllmain.c b/dll/win32/msafd/misc/dllmain.c
index 7723b93d236..a4cded75c00 100644
--- a/dll/win32/msafd/misc/dllmain.c
+++ b/dll/win32/msafd/misc/dllmain.c
@@ -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
                 {

Reply via email to