Module: wine Branch: master Commit: c604e075ecacee4b3e8e12e469502b9df5260129 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c604e075ecacee4b3e8e12e469...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Tue Mar 4 22:30:43 2008 +0000
mpr: Assign to struct instead of using memcpy.
---
dlls/mpr/wnet.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c index 36fb93c..17e8195 100644 --- a/dlls/mpr/wnet.c +++ b/dlls/mpr/wnet.c @@ -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) {