atl: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-02-09 17:13:34 +00:00 committed by Alexandre Julliard
parent 24e4267bf9
commit f83cd9d08f
1 changed files with 3 additions and 3 deletions

View File

@ -343,9 +343,9 @@ static HRESULT WINAPI OleInPlaceSiteWindowless_GetWindowContext(IOleInPlaceSiteW
TRACE("(%p,%p,%p,%p,%p,%p)\n", This, ppFrame, ppDoc, lprcPosRect, lprcClipRect, lpFrameInfo);
if ( lprcClipRect )
memcpy(lprcClipRect, &This->size, sizeof(RECT));
*lprcClipRect = This->size;
if ( lprcPosRect )
memcpy(lprcPosRect, &This->size, sizeof(RECT));
*lprcPosRect = This->size;
if ( ppFrame )
{
@ -958,7 +958,7 @@ HRESULT WINAPI AtlAxCreateControlEx(LPCOLESTR lpszName, HWND hWnd,
else {
/* FIXME - check for MSHTML: prefix! */
content = IsURL;
memcpy( &controlId, &CLSID_WebBrowser, sizeof(controlId) );
controlId = CLSID_WebBrowser;
}
hRes = CoCreateInstance( &controlId, 0, CLSCTX_ALL, &IID_IOleObject,