quartz: Obtain the duration using the index in avisplitter.
[wine] / dlls / dpnet / address.c
index 01708bd..f39cf44 100644 (file)
@@ -28,7 +28,6 @@
 #include "winbase.h"
 #include "wingdi.h"
 #include "winuser.h"
-#include "winreg.h"
 #include "objbase.h"
 #include "wine/debug.h"
 
@@ -127,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; 
 }
 
@@ -140,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; 
 }
 
@@ -268,7 +267,7 @@ const char *debugstr_SP(const GUID *id) {
   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 */