https://bugs.winehq.org/show_bug.cgi?id=52187
--- Comment #5 from Esme Povirk madewokherd@gmail.com --- OK, I don't think there are any memcpys or memmoves that could cause this problem other than the functions using GetTextAtPosition, but we have more problems. The loop can end successfully and copy fewer than 'length' characters into the buffer, but it doesn't account for the shorter length, so part of the buffer is used uninitialized.