8 Jul
2016
8 Jul
'16
3:16 a.m.
Kirill Smirnov <kirill.k.smirnov(a)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? -- Alexandre Julliard julliard(a)winehq.org