Author: fireball
Date: Sat Jul 14 11:44:26 2012
New Revision: 56886
URL:
http://svn.reactos.org/svn/reactos?rev=56886&view=rev
Log:
[WS2_32_NEW]
- Fix uninitialized variable usage warning, based on a patch by Edijs Kolesnikovics.
See issue #6828 for more details.
Modified:
trunk/reactos/dll/win32/ws2_32_new/src/sockctrl.c
Modified: trunk/reactos/dll/win32/ws2_32_new/src/sockctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32_new/src/s…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32_new/src/sockctrl.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32_new/src/sockctrl.c [iso-8859-1] Sat Jul 14 11:44:26
2012
@@ -28,13 +28,14 @@
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)))