#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
-#include "winreg.h"
#include "objbase.h"
#include "wine/debug.h"
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;
}
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;
}
if (!id) return "(null)";
for (i = 0; i < sizeof(guids)/sizeof(guids[0]); i++) {
- if (IsEqualGUID(id, &guids[i].guid))
+ if (IsEqualGUID(id, guids[i].guid))
return guids[i].name;
}
/* if we didn't find it, act like standard debugstr_guid */