mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[WS2_32_NEW]
- Fix uninitialized variable usage warning, based on a patch by Edijs Kolesnikovics. See issue #6828 for more details. svn path=/trunk/; revision=56886
This commit is contained in:
parent
490dff4d27
commit
0c286ecb18
1 changed files with 3 additions and 2 deletions
|
@ -28,13 +28,14 @@ connect(IN SOCKET s,
|
|||
PWSPROCESS Process;
|
||||
PWSTHREAD Thread;
|
||||
PWSSOCKET Socket;
|
||||
INT ErrorCode, OldErrorCode;
|
||||
INT ErrorCode, OldErrorCode = ERROR_SUCCESS;
|
||||
INT Status;
|
||||
BOOLEAN TryAgain = TRUE;
|
||||
DPRINT("connect: %lx, %p, %lx\n", s, name, namelen);
|
||||
|
||||
/* Enter prolog */
|
||||
if ((ErrorCode = WsApiProlog(&Process, &Thread)) == ERROR_SUCCESS)
|
||||
ErrorCode = WsApiProlog(&Process, &Thread);
|
||||
if (ErrorCode == ERROR_SUCCESS)
|
||||
{
|
||||
/* Get the Socket Context */
|
||||
if ((Socket = WsSockGetSocket(s)))
|
||||
|
|
Loading…
Reference in a new issue