- I hate catching these things as the commit is going out
[reactos.git] / reactos / dll / win32 / msafd / misc / dllmain.c
index 66cf285..5714213 100644 (file)
@@ -1944,12 +1944,12 @@ WSPIoctl(IN  SOCKET Handle,
             }
             *lpErrno = GetSocketInformation(Socket, AFD_INFO_RECEIVE_CONTENT_SIZE, (PULONG)lpvOutBuffer, NULL);
                        if (*lpErrno != NO_ERROR)
-                       {
-                               *lpcbBytesReturned = sizeof(ULONG);
                                return SOCKET_ERROR;
-                       }
                        else
+                       {
+                               *lpcbBytesReturned = sizeof(ULONG);
                                return NO_ERROR;
+                       }
         default:
                        *lpErrno = Socket->HelperData->WSHIoctl(Socket->HelperContext,
                                                                                                        Handle,