itss: Assign to structs instead of using memcpy.
This commit is contained in:
parent
5e8253aaf9
commit
f6cbd9a045
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue