ole32: Assign to structs instead of using memcpy.
This commit is contained in:
parent
db71fb15aa
commit
fd6ae97486
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue