mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
inetcomm: Assign to structs instead of using memcpy.
This commit is contained in:
parent
511dd2a8c0
commit
14987e4021
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user