if (dwGuidKind != GUIDKIND_DEFAULT_SOURCE_DISP_IID) {
WARN("Wrong GUID type: %d\n", dwGuidKind);
- memcpy(pGUID, &IID_NULL, sizeof(GUID));
+ *pGUID = IID_NULL;
return E_FAIL;
}
*ppDoc = NULL;
GetClientRect(This->hwnd, lprcPosRect);
- memcpy(lprcClipRect, lprcPosRect, sizeof(RECT));
+ *lprcClipRect = *lprcPosRect;
lpFrameInfo->cb = sizeof(*lpFrameInfo);
lpFrameInfo->fMDIApp = FALSE;
TRACE("(%p)->(%p)\n", This, pIID);
- memcpy(pIID, &This->iid, sizeof(IID));
+ *pIID = This->iid;
return S_OK;
}
ret->sinks_size = 0;
ret->container = container;
- memcpy(&ret->iid, riid, sizeof(IID));
+ ret->iid = *riid;
*cp = ret;
}
TRACE("(%p)->(%x %p)\n", This, dwDrawAspect, psizel);
/* Tests show that dwDrawAspect is ignored */
- memcpy(&This->extent, psizel, sizeof(SIZEL));
+ This->extent = *psizel;
return S_OK;
}
TRACE("(%p)->(%x, %p)\n", This, dwDrawAspect, psizel);
/* Tests show that dwDrawAspect is ignored */
- memcpy(psizel, &This->extent, sizeof(SIZEL));
+ *psizel = This->extent;
return S_OK;
}
TRACE("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect);
- memcpy(&This->pos_rect, lprcPosRect, sizeof(RECT));
+ This->pos_rect = *lprcPosRect;
if(lprcClipRect)
- memcpy(&This->clip_rect, lprcClipRect, sizeof(RECT));
+ This->clip_rect = *lprcClipRect;
if(This->shell_embedding_hwnd) {
SetWindowPos(This->shell_embedding_hwnd, NULL,
if (pInstanceObjectFactory) {
pInstanceObjectFactory->lpIClassFactoryVtbl = &InstanceObjectFactory_IClassFactoryVtbl;
pInstanceObjectFactory->m_cRef = 0;
- memcpy(&pInstanceObjectFactory->m_clsidInstance, rclsid, sizeof(CLSID));
+ pInstanceObjectFactory->m_clsidInstance = *rclsid;
pInstanceObjectFactory->m_pPropertyBag = pPropertyBag;
IPropertyBag_AddRef(pPropertyBag);
if(!This->inplace)
return E_UNEXPECTED;
- memcpy(&rect, &This->pos_rect, sizeof(RECT));
+ rect = This->pos_rect;
rect.left = Left;
/* We don't really change the window position here.
if(!This->inplace)
return E_UNEXPECTED;
- memcpy(&rect, &This->pos_rect, sizeof(RECT));
+ rect = This->pos_rect;
rect.top = Top;
/* We don't really change the window position here.
if(!This->inplace)
return E_UNEXPECTED;
- memcpy(&rect, &This->pos_rect, sizeof(RECT));
+ rect = This->pos_rect;
rect.right = rect.left+Width;
-
+
/* We don't really change the window size here.
* We just notify the embedder that he should do so. */
return IOleInPlaceSite_OnPosRectChange(This->inplace, &rect);
if(!This->inplace)
return E_UNEXPECTED;
- memcpy(&rect, &This->pos_rect, sizeof(RECT));
+ rect = This->pos_rect;
rect.bottom = rect.top+Height;
/* We don't really change the window size here.