Andrew Talbot : atl: Assign to structs instead of using memcpy.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 14:19:27 CST 2008


Module: wine
Branch: master
Commit: f83cd9d08fa01409d3594acaf9468d857e3da28a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f83cd9d08fa01409d3594acaf9468d857e3da28a

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Feb  9 17:13:34 2008 +0000

atl: Assign to structs instead of using memcpy.

---

 dlls/atl/atl_ax.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index 6ffccde..1d8a67c 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -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, 




More information about the wine-cvs mailing list