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));
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user