Commit 1b4e1934 authored by Kirill Smirnov's avatar Kirill Smirnov Committed by Alexandre Julliard

winex11.drv: Avoid passing NULL to memcpy (clang).

parent 622c01c5
......@@ -92,7 +92,7 @@ static void X11DRV_ImmSetInternalString(DWORD dwOffset,
ptr_new = CompositionString + byte_offset;
memmove(ptr_new + byte_length, ptr_new + byte_selection,
dwCompStringLength - byte_offset - byte_selection);
memcpy(ptr_new, lpComp, byte_length);
if (lpComp) memcpy(ptr_new, lpComp, byte_length);
dwCompStringLength += byte_expansion;
IME_SetCompositionString(SCS_SETSTR, CompositionString,
......
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