Module: wine Branch: master Commit: 5d038523e9fde8b866706b99896c917656b61fec URL: http://source.winehq.org/git/wine.git/?a=commit;h=5d038523e9fde8b866706b9989...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat Mar 22 17:10:01 2008 +0000
winex11.drv: Assign to structs instead of using memcpy.
---
dlls/winex11.drv/clipboard.c | 2 +- dlls/winex11.drv/wintab.c | 2 +- dlls/winex11.drv/xrender.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c index 5e85998..0dba308 100644 --- a/dlls/winex11.drv/clipboard.c +++ b/dlls/winex11.drv/clipboard.c @@ -2900,7 +2900,7 @@ static Atom X11DRV_SelectionRequest_MULTIPLE( HWND hWnd, XSelectionRequestEvent }
/* Set up an XSelectionRequestEvent for this (target,property) pair */ - memcpy( &event, pevent, sizeof(XSelectionRequestEvent) ); + event = *pevent; event.target = targetPropList[i]; event.property = targetPropList[i+1];
diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c index 47376c0..16e369b 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -984,7 +984,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner) */ int X11DRV_GetCurrentPacket(LPWTPACKET packet) { - memcpy(packet,&gMsgPacket,sizeof(WTPACKET)); + *packet = gMsgPacket; return 1; }
diff --git a/dlls/winex11.drv/xrender.c b/dlls/winex11.drv/xrender.c index d39938c..554ce25 100644 --- a/dlls/winex11.drv/xrender.c +++ b/dlls/winex11.drv/xrender.c @@ -806,7 +806,7 @@ static BOOL UploadGlyph(X11DRV_PDEVICE *physDev, int glyph, AA_Type format) formatEntry->bitmaps[glyph] = buf; }
- memcpy(&formatEntry->gis[glyph], &gi, sizeof(gi)); + formatEntry->gis[glyph] = gi;
return TRUE; }