Commit 23dd9dc0 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

imm32: Assign to structs instead of using memcpy.

parent 18da6f23
...@@ -1014,7 +1014,7 @@ BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm) ...@@ -1014,7 +1014,7 @@ BOOL WINAPI ImmGetCompositionWindow(HIMC hIMC, LPCOMPOSITIONFORM lpCompForm)
if (!data) if (!data)
return FALSE; return FALSE;
memcpy(lpCompForm,&(data->IMC.cfCompForm),sizeof(COMPOSITIONFORM)); *lpCompForm = data->IMC.cfCompForm;
return 1; return 1;
} }
...@@ -1614,7 +1614,7 @@ BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf) ...@@ -1614,7 +1614,7 @@ BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
if (!data) if (!data)
return FALSE; return FALSE;
memcpy(&data->IMC.lfFont.W,lplf,sizeof(LOGFONTW)); data->IMC.lfFont.W = *lplf;
ImmInternalSendIMENotify(IMN_SETCOMPOSITIONFONT, 0); ImmInternalSendIMENotify(IMN_SETCOMPOSITIONFONT, 0);
if (data->textfont) if (data->textfont)
...@@ -1751,7 +1751,7 @@ BOOL WINAPI ImmSetCompositionWindow( ...@@ -1751,7 +1751,7 @@ BOOL WINAPI ImmSetCompositionWindow(
if (!data) if (!data)
return FALSE; return FALSE;
memcpy(&data->IMC.cfCompForm,lpCompForm,sizeof(COMPOSITIONFORM)); data->IMC.cfCompForm = *lpCompForm;
if (IsWindowVisible(hwndDefault)) if (IsWindowVisible(hwndDefault))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment