Module: wine Branch: master Commit: 14987e4021790a554503ce5eade67f46cefa3d63 URL: http://source.winehq.org/git/wine.git/?a=commit;h=14987e4021790a554503ce5ead...
Author: Andrew Talbot andrew.talbot@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);