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:
parent
622c01c5e1
commit
1b4e193473
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue