diff --git a/dlls/itss/moniker.c b/dlls/itss/moniker.c index d57f38167b6..41e2bdaad86 100644 --- a/dlls/itss/moniker.c +++ b/dlls/itss/moniker.c @@ -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; } diff --git a/dlls/itss/protocol.c b/dlls/itss/protocol.c index 85711745dfe..c2277e2c210 100644 --- a/dlls/itss/protocol.c +++ b/dlls/itss/protocol.c @@ -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, diff --git a/dlls/itss/storage.c b/dlls/itss/storage.c index 97d7755826a..de0acfaee3e 100644 --- a/dlls/itss/storage.c +++ b/dlls/itss/storage.c @@ -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 );