inetcomm: Assign to structs instead of using memcpy

Andrew Talbot andrew.talbot at talbotville.com
Mon Mar 24 10:45:37 CDT 2008


Changelog:
    inetcomm: Assign to structs instead of using memcpy.

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-patches mailing list