ws2_32: Avoid an unnecessary goto.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-02-04 19:35:36 -06:00 committed by Alexandre Julliard
parent 186b99c2ac
commit 2895f0fd22
1 changed files with 3 additions and 7 deletions

View File

@ -3305,8 +3305,9 @@ SOCKET WINAPI WSASocketW(int af, int type, int protocol,
if (!num_startup)
{
err = WSANOTINITIALISED;
goto done;
WARN( "not initialised\n" );
SetLastError( WSANOTINITIALISED );
return -1;
}
/* hack for WSADuplicateSocket */
@ -3406,11 +3407,6 @@ SOCKET WINAPI WSASocketW(int af, int type, int protocol,
}
WSASetLastError(0);
return ret;
done:
WARN("\t\tfailed, error %d!\n", err);
SetLastError(err);
return INVALID_SOCKET;
}
/***********************************************************************