mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
urlmon: Assign to structs instead of using memcpy.
This commit is contained in:
parent
39f138a298
commit
dbe7718e2b
@ -1083,7 +1083,7 @@ static HRESULT WINAPI InternetProtocolSink_Switch(IInternetProtocolSink *iface,
|
||||
TRACE("(%p)->(%p)\n", This, pProtocolData);
|
||||
|
||||
task = heap_alloc(sizeof(switch_task_t));
|
||||
memcpy(&task->data, pProtocolData, sizeof(PROTOCOLDATA));
|
||||
task->data = *pProtocolData;
|
||||
|
||||
push_task(This, &task->header, switch_proc);
|
||||
|
||||
@ -1382,7 +1382,7 @@ static HRESULT WINAPI InternetBindInfo_GetBindInfo(IInternetBindInfo *iface,
|
||||
|
||||
*grfBINDF = This->bindf;
|
||||
|
||||
memcpy(pbindinfo, &This->bindinfo, sizeof(BINDINFO));
|
||||
*pbindinfo = This->bindinfo;
|
||||
|
||||
if(pbindinfo->szExtraInfo || pbindinfo->szCustomVerb)
|
||||
FIXME("copy strings\n");
|
||||
|
@ -398,7 +398,7 @@ HRESULT WINAPI CopyStgMedium(const STGMEDIUM *src, STGMEDIUM *dst)
|
||||
if(!src || !dst)
|
||||
return E_POINTER;
|
||||
|
||||
memcpy(dst, src, sizeof(STGMEDIUM));
|
||||
*dst = *src;
|
||||
|
||||
switch(dst->tymed) {
|
||||
case TYMED_NULL:
|
||||
|
Loading…
Reference in New Issue
Block a user