netapi32: Assign to struct instead of using memcpy

Andrew Talbot andrew.talbot at talbotville.com
Sat Mar 8 09:37:01 CST 2008


Changelog:
    netapi32: Assign to struct instead of using memcpy.

diff --git a/dlls/netapi32/nbt.c b/dlls/netapi32/nbt.c
index a3e38ba..1186572 100644
--- a/dlls/netapi32/nbt.c
+++ b/dlls/netapi32/nbt.c
@@ -1278,13 +1278,13 @@ static UCHAR NetBTRegisterAdapter(const MIB_IPADDRROW *ipRow)
 {
     UCHAR ret;
     NetBTAdapter *adapter;
-    
+
     if (!ipRow) return NRC_BADDR;
 
     adapter = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NetBTAdapter));
     if (adapter)
     {
-        memcpy(&adapter->ipr, ipRow, sizeof(MIB_IPADDRROW));
+        adapter->ipr = *ipRow;
         if (!NetBIOSRegisterAdapter(gTransportID, ipRow->dwIndex, adapter))
         {
             NetBTCleanupAdapter(adapter);



More information about the wine-patches mailing list