Created
April 14, 2012 22:54
-
-
Save dpogue/2388382 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp b/Sources/Plasma/NucleusLib/pnAsyncC | |
index 3aa557b..4b46aad 100644 | |
--- a/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp | |
+++ b/Sources/Plasma/NucleusLib/pnAsyncCoreExe/Private/Win32/pnAceW32Dns.cpp | |
@@ -112,12 +112,9 @@ static void LookupProcess (Lookup * lookup, unsigned error) { | |
addrs = new plNetAddress[count]; | |
// fill in address data | |
- const uint16_t port = htons((uint16_t) lookup->port); | |
for (unsigned i = 0; i < count; ++i) { | |
- sockaddr_in * inetaddr = (sockaddr_in *) &addrs[i]; | |
- inetaddr->sin_family = AF_INET; | |
- inetaddr->sin_addr = *inAddr[i]; | |
- inetaddr->sin_port = port; | |
+ addrs[i].SetHost(inAddr[i]->sin_addr.s_addr); | |
+ addrs[i].SetPort(lookup->port); | |
} | |
if (host.h_name && host.h_name[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment