Andrew Nguyen : wineconsole: Pass an output parameter when calling ReadConsoleOutputCharacterW.
Alexandre Julliard
julliard at winehq.org
Tue Jan 11 10:08:30 CST 2011
Module: wine
Branch: master
Commit: 2e5c0a3acb0ca62dec67c30b9d734f68ab3b7a3e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e5c0a3acb0ca62dec67c30b9d734f68ab3b7a3e
Author: Andrew Nguyen <anguyen at codeweavers.com>
Date: Tue Jan 11 05:11:48 2011 -0600
wineconsole: Pass an output parameter when calling ReadConsoleOutputCharacterW.
---
programs/wineconsole/user.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c
index dc60ffd..bc70a6b 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;
More information about the wine-cvs
mailing list