Commit beff4323 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dxof: Use assignment for GUID instead of memcpy with hardcoded size.

parent 59a1bcd9
......@@ -619,7 +619,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetId(IDirectXFileData* iface, LPGUID
if (!pGuid)
return DXFILEERR_BADVALUE;
memcpy(pGuid, &This->pobj->class_id, 16);
*pGuid = This->pobj->class_id;
return DXFILE_OK;
}
......@@ -667,7 +667,7 @@ static HRESULT WINAPI IDirectXFileDataImpl_GetType(IDirectXFileData* iface, cons
if (!pguid)
return DXFILEERR_BADVALUE;
memcpy(&guid, &This->pobj->type, 16);
guid = This->pobj->type;
*pguid = &guid;
return DXFILE_OK;
......@@ -886,7 +886,7 @@ static HRESULT WINAPI IDirectXFileDataReferenceImpl_GetId(IDirectXFileDataRefere
if (!pGuid)
return DXFILEERR_BADVALUE;
memcpy(pGuid, &This->ptarget->class_id, 16);
*pGuid = This->ptarget->class_id;
return DXFILE_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment