Commit 0167d2c8 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

netapi32: Assign to struct instead of using memcpy.

parent 025d84e6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment