mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
imm32: Assign to structs instead of using memcpy.
This commit is contained in:
parent
18da6f23a2
commit
23dd9dc088
1 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue