From 2e5c0a3acb0ca62dec67c30b9d734f68ab3b7a3e Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Tue, 11 Jan 2011 05:11:48 -0600 Subject: [PATCH] wineconsole: Pass an output parameter when calling ReadConsoleOutputCharacterW. --- programs/wineconsole/user.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;