Module: wine Branch: master Commit: 23dd9dc088c6fabdd51c1680bd85bcb142e8f94b URL: http://source.winehq.org/git/wine.git/?a=commit;h=23dd9dc088c6fabdd51c1680bd...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Fri Feb 29 11:07:14 2008 +0000
imm32: Assign to structs instead of using memcpy.
---
dlls/imm32/imm.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 436c126..4ce857d 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -1014,7 +1014,7 @@ BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm) if (!data) return FALSE;
- memcpy(lpCompForm,&(data->IMC.cfCompForm),sizeof(COMPOSITIONFORM)); + *lpCompForm = data->IMC.cfCompForm; return 1; }
@@ -1614,7 +1614,7 @@ BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf) if (!data) return FALSE;
- memcpy(&data->IMC.lfFont.W,lplf,sizeof(LOGFONTW)); + data->IMC.lfFont.W = *lplf; ImmInternalSendIMENotify(IMN_SETCOMPOSITIONFONT, 0);
if (data->textfont) @@ -1751,7 +1751,7 @@ BOOL WINAPI ImmSetCompositionWindow( if (!data) return FALSE;
- memcpy(&data->IMC.cfCompForm,lpCompForm,sizeof(COMPOSITIONFORM)); + data->IMC.cfCompForm = *lpCompForm;
if (IsWindowVisible(hwndDefault)) {