Kirill Smirnov kirill.k.smirnov@gmail.com writes:
@@ -92,7 +92,8 @@ 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);
- /* Do not pass NULL even if the length == 0 */
- if (lpComp) memcpy(ptr_new, lpComp, byte_length); dwCompStringLength += byte_expansion;
Why would that be a problem?