mpr: Assign to struct instead of using memcpy.
This commit is contained in:
parent
18f78c721f
commit
c604e075ec
|
@ -355,7 +355,7 @@ static LPNETRESOURCEW _copyNetResourceForEnumW(LPNETRESOURCEW lpNet)
|
|||
{
|
||||
size_t len;
|
||||
|
||||
memcpy(ret, lpNet, sizeof(ret));
|
||||
*ret = *lpNet;
|
||||
ret->lpLocalName = ret->lpComment = ret->lpProvider = NULL;
|
||||
if (lpNet->lpRemoteName)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue