imm32: Assign to structs instead of using memcpy
Andrew Talbot
andrew.talbot at talbotville.com
Fri Feb 29 04:44:07 CST 2008
Changelog:
imm32: Assign to structs instead of using memcpy.
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 436c126..6f80331 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;
}
@@ -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))
{
More information about the wine-patches
mailing list