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

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Kirill Smirnov 2016-07-08 01:50:27 +03:00 committed by Alexandre Julliard
parent 622c01c5e1
commit 1b4e193473
1 changed files with 1 additions and 1 deletions

View File

@ -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,