Commit 2895f0fd authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Avoid an unnecessary goto.

parent 186b99c2
......@@ -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;
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment