Commit ba5f2055 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

winex11: Use memmove for possibly overlapping memory areas.

parent dca07aa8
......@@ -535,7 +535,7 @@ static BOOL IME_RemoveFromSelected(HIMC hIMC)
if (hSelectedFrom[i] == hIMC)
{
if (i < hSelectedCount - 1)
memcpy(&hSelectedFrom[i], &hSelectedFrom[i+1], (hSelectedCount - i - 1)*sizeof(HIMC));
memmove(&hSelectedFrom[i], &hSelectedFrom[i+1], (hSelectedCount - i - 1)*sizeof(HIMC));
hSelectedCount --;
return TRUE;
}
......
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