Commit f6cbd9a0 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

itss: Assign to structs instead of using memcpy.

parent 5e8253aa
......@@ -99,7 +99,7 @@ static HRESULT WINAPI ITS_IMonikerImpl_GetClassID(
ITS_IMonikerImpl *This = (ITS_IMonikerImpl *)iface;
TRACE("%p %p\n", This, pClassID);
memcpy( pClassID, &CLSID_ITStorage, sizeof (CLSID) );
*pClassID = CLSID_ITStorage;
return S_OK;
}
......
......@@ -234,7 +234,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
release_chm(This); /* Native leaks handle here */
This->chm_file = chm_file;
memcpy(&This->chm_object, &chm_object, sizeof(chm_object));
This->chm_object = chm_object;
hres = IInternetProtocolSink_ReportData(pOIProtSink,
BSCF_FIRSTDATANOTIFICATION|BSCF_DATAFULLYAVAILABLE,
......
......@@ -445,7 +445,7 @@ static int ITSS_chm_enumerator(
TRACE("adding %s to enumeration\n", debugstr_w(ui->path) );
info = HeapAlloc( GetProcessHeap(), 0, sizeof (struct enum_info) );
memcpy( &info->ui, ui, sizeof info->ui );
info->ui = *ui;
info->next = NULL;
info->prev = stgenum->last;
......@@ -788,7 +788,7 @@ static HRESULT WINAPI ITSS_IStream_Stat(
pstatstg->type = STGTY_STREAM;
pstatstg->cbSize.QuadPart = This->ui.length;
pstatstg->grfMode = STGM_READ;
memcpy( &pstatstg->clsid, &CLSID_ITStorage, sizeof (CLSID) );
pstatstg->clsid = CLSID_ITStorage;
return S_OK;
}
......@@ -828,7 +828,7 @@ static IStream_Impl *ITSS_create_stream(
stm->vtbl_IStream = &ITSS_IStream_vtbl;
stm->ref = 1;
stm->addr = 0;
memcpy( &stm->ui, ui, sizeof stm->ui );
stm->ui = *ui;
stm->stg = stg;
IStorage_AddRef( (IStorage*) stg );
......
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