Andrew Talbot : wsock32: Assign to struct instead of using memcpy.

Alexandre Julliard julliard at winehq.org
Mon Mar 24 15:21:47 CDT 2008


Module: wine
Branch: master
Commit: 511dd2a8c07bda39df867b8ab87a0231bccf2b93
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=511dd2a8c07bda39df867b8ab87a0231bccf2b93

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Mar 24 15:45:33 2008 +0000

wsock32: Assign to struct instead of using memcpy.

---

 dlls/wsock32/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wsock32/socket.c b/dlls/wsock32/socket.c
index d326443..6073a76 100644
--- a/dlls/wsock32/socket.c
+++ b/dlls/wsock32/socket.c
@@ -410,7 +410,7 @@ DWORD WINAPI WsControl(DWORD protocol,
                   TRACE("Found IP info for tei_instance 0x%x:\n", index);
                   TRACE("IP 0x%08x, mask 0x%08x\n", table->table[i].dwAddr,
                    table->table[i].dwMask);
-                  memcpy(baseIPInfo, &table->table[i], sizeof(MIB_IPADDRROW));
+                  *baseIPInfo = table->table[i];
                   break;
                }
             }




More information about the wine-cvs mailing list