Andrew Talbot : dpnet: Assign to structs instead of using memcpy.
Alexandre Julliard
julliard at winehq.org
Wed Feb 27 08:03:17 CST 2008
Module: wine
Branch: master
Commit: 7e584e4add5f056b15c4552813e4534f3f46f271
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e584e4add5f056b15c4552813e4534f3f46f271
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Tue Feb 26 20:20:11 2008 +0000
dpnet: Assign to structs instead of using memcpy.
---
dlls/dpnet/address.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dpnet/address.c b/dlls/dpnet/address.c
index c0b924c..f39cf44 100644
--- a/dlls/dpnet/address.c
+++ b/dlls/dpnet/address.c
@@ -126,7 +126,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetURLA(PDIRECTPLAY8ADDRESS iface,
static HRESULT WINAPI IDirectPlay8AddressImpl_GetSP(PDIRECTPLAY8ADDRESS iface, GUID* pguidSP) {
IDirectPlay8AddressImpl *This = (IDirectPlay8AddressImpl *)iface;
TRACE("(%p, %p)\n", iface, pguidSP);
- memcpy(pguidSP, &This->SP_guid, sizeof(GUID));
+ *pguidSP = This->SP_guid;
return DPN_OK;
}
@@ -139,7 +139,7 @@ static HRESULT WINAPI IDirectPlay8AddressImpl_GetUserData(PDIRECTPLAY8ADDRESS if
static HRESULT WINAPI IDirectPlay8AddressImpl_SetSP(PDIRECTPLAY8ADDRESS iface, CONST GUID* CONST pguidSP) {
IDirectPlay8AddressImpl *This = (IDirectPlay8AddressImpl *)iface;
TRACE("(%p, %s)\n", iface, debugstr_SP(pguidSP));
- memcpy(&This->SP_guid, pguidSP, sizeof(GUID));
+ This->SP_guid = *pguidSP;
return DPN_OK;
}
More information about the wine-cvs
mailing list