itss: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-02-29 22:06:59 +00:00 committed by Alexandre Julliard
parent 5e8253aaf9
commit f6cbd9a045
3 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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,

View File

@ -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 );