diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c index dc60ffdd610..bc70a6b1f92 100644 --- a/programs/wineconsole/user.c +++ b/programs/wineconsole/user.c @@ -690,7 +690,9 @@ static void WCUSER_CopySelectionToClipboard(const struct inner_data* data) for (y = 0; y < h; y++, c.Y++) { LPWSTR end; - ReadConsoleOutputCharacterW(data->hConOut, p, w - 1, c, NULL); + DWORD count; + + ReadConsoleOutputCharacterW(data->hConOut, p, w - 1, c, &count); /* strip spaces from the end of the line */ end = p + w - 1;