Re: [PATCH 2/2] d3dxof: Use sizeof(GUID) instead of hardcoding the value.
22 Oct
2012
22 Oct
'12
10:05 a.m.
Christian Costa <titan.costa(a)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(a)winehq.org
4802
Age (days ago)
4802
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard