CVS: winex/dlls/iphlpapi ipstats.c,1.7,1.8
[email protected] 27 Jun 2007 12:10:17 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/dlls/iphlpapi ipstats.c,1.7,1.8Update of /var/lib/cvsd/cvsroot/winex/dlls/iphlpapi
In directory agravaine:/tmp/cvs-serv23746/dlls/iphlpapi
Modified Files:
ipstats.c
Log Message:
- fix byte ordering of Linux ports in the TCP connection table
Index: ipstats.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/dlls/iphlpapi/ipstats.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ipstats.c 27 Jun 2007 11:45:04 -0000 1.7
+++ ipstats.c 27 Jun 2007 12:10:15 -0000 1.8
@@ -1315,7 +1315,7 @@
if (ptr && *ptr) {
ptr++;
table->table[table->dwNumEntries].dwLocalPort =
- strtoul(ptr, &endPtr, 16);
+ htons ((unsigned short)strtoul(ptr, &endPtr, 16));
ptr = endPtr;
}
if (ptr && *ptr) {
@@ -1326,7 +1326,7 @@
if (ptr && *ptr) {
ptr++;
table->table[table->dwNumEntries].dwRemotePort =
- strtoul(ptr, &endPtr, 16);
+ htons ((unsigned short)strtoul(ptr, &endPtr, 16));
ptr = endPtr;
}
if (ptr && *ptr) {