netapi32: Assign to struct instead of using memcpy.
This commit is contained in:
parent
025d84e644
commit
0167d2c8a6
|
@ -1284,7 +1284,7 @@ static UCHAR NetBTRegisterAdapter(const MIB_IPADDRROW *ipRow)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue