ole32: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-13 20:52:00 +00:00 committed by Alexandre Julliard
parent db71fb15aa
commit fd6ae97486
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ enumx_impl *enumx_allocate(REFIID riid, const void *vtbl, ULONG elem_size)
enumx->ref = 1;
enumx->current = NULL;
enumx->elem_size = elem_size;
memcpy(&enumx->riid, riid, sizeof *riid);
enumx->riid = *riid;
list_init(&enumx->elements);
}

View File

@ -887,7 +887,7 @@ static HRESULT WINAPI IPropertyStorage_fnSetClass(
return E_INVALIDARG;
if (!(This->grfMode & STGM_READWRITE))
return STG_E_ACCESSDENIED;
memcpy(&This->clsid, clsid, sizeof(This->clsid));
This->clsid = *clsid;
This->dirty = TRUE;
if (This->grfFlags & PROPSETFLAG_UNBUFFERED)
IPropertyStorage_Commit(iface, STGC_DEFAULT);