imm32: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-02-29 11:07:14 +00:00 committed by Alexandre Julliard
parent 18da6f23a2
commit 23dd9dc088

View File

@ -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)
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(
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))
{ {