Commit 7e584e4a authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dpnet: Assign to structs instead of using memcpy.

parent a5a11b78
...@@ -126,7 +126,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetURLA(PDIRECTPLAY8ADDRESS iface, ...@@ -126,7 +126,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetURLA(PDIRECTPLAY8ADDRESS iface,
static HRESULT WINAPI IDirectPlay8AddressImpl_GetSP(PDIRECTPLAY8ADDRESS iface, GUID* pguidSP) { static HRESULT WINAPI IDirectPlay8AddressImpl_GetSP(PDIRECTPLAY8ADDRESS iface, GUID* pguidSP) {
IDirectPlay8AddressImpl *This = (IDirectPlay8AddressImpl *)iface; IDirectPlay8AddressImpl *This = (IDirectPlay8AddressImpl *)iface;
TRACE("(%p, %p)\n", iface, pguidSP); TRACE("(%p, %p)\n", iface, pguidSP);
memcpy(pguidSP, &This->SP_guid, sizeof(GUID)); *pguidSP = This->SP_guid;
return DPN_OK; return DPN_OK;
} }
...@@ -139,7 +139,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetUserData(PDIRECTPLAY8ADDRESS if ...@@ -139,7 +139,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetUserData(PDIRECTPLAY8ADDRESS if
static HRESULT WINAPI IDirectPlay8AddressImpl_SetSP(PDIRECTPLAY8ADDRESS iface, CONST GUID* CONST pguidSP) { static HRESULT WINAPI IDirectPlay8AddressImpl_SetSP(PDIRECTPLAY8ADDRESS iface, CONST GUID* CONST pguidSP) {
IDirectPlay8AddressImpl *This = (IDirectPlay8AddressImpl *)iface; IDirectPlay8AddressImpl *This = (IDirectPlay8AddressImpl *)iface;
TRACE("(%p, %s)\n", iface, debugstr_SP(pguidSP)); TRACE("(%p, %s)\n", iface, debugstr_SP(pguidSP));
memcpy(&This->SP_guid, pguidSP, sizeof(GUID)); This->SP_guid = *pguidSP;
return DPN_OK; return DPN_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment