mpr: Assign to struct instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-04 22:30:43 +00:00 committed by Alexandre Julliard
parent 18f78c721f
commit c604e075ec
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{