[PATCH 2/2] d3dxof: Use sizeof(GUID) instead of hardcoding the value.

Alexandre Julliard julliard at winehq.org
Mon Oct 22 05:05:39 CDT 2012


Christian Costa <titan.costa at gmail.com> writes:

> @@ -599,7 +599,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetId(IDirectXFileData* iface, LPGUID
>    if (!pGuid)
>      return DXFILEERR_BADVALUE;
>  
> -  memcpy(pGuid, &This->pobj->class_id, 16);
> +  memcpy(pGuid, &This->pobj->class_id, sizeof(GUID));

Using normal assignments would be even better.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list