Andrew Talbot : inetcomm: Assign to structs instead of using memcpy.

Alexandre Julliard julliard at winehq.org
Mon Mar 24 15:21:48 CDT 2008


Module: wine
Branch: master
Commit: 14987e4021790a554503ce5eade67f46cefa3d63
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=14987e4021790a554503ce5eade67f46cefa3d63

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Mar 24 15:45:37 2008 +0000

inetcomm: Assign to structs instead of using memcpy.

---

 dlls/inetcomm/internettransport.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/inetcomm/internettransport.c b/dlls/inetcomm/internettransport.c
index 19fed54..2dab22f 100644
--- a/dlls/inetcomm/internettransport.c
+++ b/dlls/inetcomm/internettransport.c
@@ -57,7 +57,7 @@ HRESULT InternetTransport_GetServerInfo(InternetTransport *This, LPINETSERVER pI
     if (This->Status == IXP_DISCONNECTED)
         return IXP_E_NOT_CONNECTED;
 
-    memcpy(pInetServer, &This->ServerInfo, sizeof(*pInetServer));
+    *pInetServer = This->ServerInfo;
     return S_OK;
 }
 
@@ -80,7 +80,7 @@ HRESULT InternetTransport_Connect(InternetTransport *This,
     if (This->Status != IXP_DISCONNECTED)
         return IXP_E_ALREADY_CONNECTED;
 
-    memcpy(&This->ServerInfo, pInetServer, sizeof(This->ServerInfo));
+    This->ServerInfo = *pInetServer;
     This->fCommandLogging = fCommandLogging;
 
     This->hwnd = CreateWindowW(wszClassName, wszClassName, 0, 0, 0, 0, 0, NULL, NULL, NULL, 0);




More information about the wine-cvs mailing list