From 14987e4021790a554503ce5eade67f46cefa3d63 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Mon, 24 Mar 2008 15:45:37 +0000 Subject: [PATCH] inetcomm: Assign to structs instead of using memcpy. --- dlls/inetcomm/internettransport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/inetcomm/internettransport.c b/dlls/inetcomm/internettransport.c index 19fed54aad9..2dab22ffc77 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);