mpr: Assign to struct instead of using memcpy
Andrew Talbot
andrew.talbot at talbotville.com
Tue Mar 4 16:30:43 CST 2008
Changelog:
mpr: Assign to struct instead of using memcpy.
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)
{
More information about the wine-patches
mailing list