wineconsole: Pass an output parameter when calling ReadConsoleOutputCharacterW.

This commit is contained in:
Andrew Nguyen 2011-01-11 05:11:48 -06:00 committed by Alexandre Julliard
parent ee84a9df12
commit 2e5c0a3acb
1 changed files with 3 additions and 1 deletions

View File

@ -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;