Author: tfaber
Date: Sat Aug 6 12:58:32 2016
New Revision: 72137
URL:
http://svn.reactos.org/svn/reactos?rev=72137&view=rev
Log:
[WS2_32_NEW]
- Fix always true conditions in ComputeQuerySetSize
CORE-11799
Modified:
trunk/reactos/dll/win32/ws2_32_new/src/qshelpr.c
Modified: trunk/reactos/dll/win32/ws2_32_new/src/qshelpr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32_new/src/q…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32_new/src/qshelpr.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32_new/src/qshelpr.c [iso-8859-1] Sat Aug 6 12:58:32
2016
@@ -201,14 +201,14 @@
for (i = 0; i < AnsiSet->dwNumberOfCsAddrs; i++)
{
/* Check for local sockaddr */
- if (&AnsiSet->lpcsaBuffer[i].LocalAddr)
+ if (AnsiSet->lpcsaBuffer[i].LocalAddr.lpSockaddr)
{
/* Align the current size and add the sockaddr's length */
Size = (Size + 3) & ~3;
Size += AnsiSet->lpcsaBuffer[i].LocalAddr.iSockaddrLength;
}
/* Check for remote sockaddr */
- if (&AnsiSet->lpcsaBuffer[i].RemoteAddr)
+ if (AnsiSet->lpcsaBuffer[i].RemoteAddr.lpSockaddr)
{
/* Align the current size and add the sockaddr's length */
Size = (Size + 3) & ~3;