Commit c604e075 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

mpr: Assign to struct instead of using memcpy.

parent 18f78c72
...@@ -355,7 +355,7 @@ static LPNETRESOURCEW _copyNetResourceForEnumW(LPNETRESOURCEW lpNet) ...@@ -355,7 +355,7 @@ static LPNETRESOURCEW _copyNetResourceForEnumW(LPNETRESOURCEW lpNet)
{ {
size_t len; size_t len;
memcpy(ret, lpNet, sizeof(ret)); *ret = *lpNet;
ret->lpLocalName = ret->lpComment = ret->lpProvider = NULL; ret->lpLocalName = ret->lpComment = ret->lpProvider = NULL;
if (lpNet->lpRemoteName) if (lpNet->lpRemoteName)
{ {
......
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