Pass NameLength back to caller
authorGé van Geldorp <ge@gse.nl>
Thu, 10 Mar 2005 22:59:28 +0000 (22:59 +0000)
committerGé van Geldorp <ge@gse.nl>
Thu, 10 Mar 2005 22:59:28 +0000 (22:59 +0000)
svn path=/trunk/; revision=13919

reactos/lib/msafd/misc/dllmain.c

index dde09e3..11ebc62 100644 (file)
@@ -1285,6 +1285,7 @@ WSPGetSockName(
                        RtlCopyMemory (Name->sa_data,
                                       SocketAddress->Address[0].Address, 
                                       SocketAddress->Address[0].AddressLength);
+                       *NameLength = 2 + SocketAddress->Address[0].AddressLength;
                        HeapFree(GlobalHeap, 0, TdiAddress);
                        return 0;
                } else {