netapi32: Assign to struct instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-08 15:37:01 +00:00 committed by Alexandre Julliard
parent 025d84e644
commit 0167d2c8a6

View File

@ -1284,7 +1284,7 @@ static UCHAR NetBTRegisterAdapter(const MIB_IPADDRROW *ipRow)
adapter = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NetBTAdapter)); adapter = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(NetBTAdapter));
if (adapter) if (adapter)
{ {
memcpy(&adapter->ipr, ipRow, sizeof(MIB_IPADDRROW)); adapter->ipr = *ipRow;
if (!NetBIOSRegisterAdapter(gTransportID, ipRow->dwIndex, adapter)) if (!NetBIOSRegisterAdapter(gTransportID, ipRow->dwIndex, adapter))
{ {
NetBTCleanupAdapter(adapter); NetBTCleanupAdapter(adapter);