forked from cory/tildefriends
libuv 1.42.0.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3650 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -212,9 +212,9 @@ static void capture_screen(uv_tty_t* tty_out, struct captured_screen* cs) {
|
||||
origin.X = 0;
|
||||
origin.Y = cs->si.csbi.srWindow.Top;
|
||||
cs->text = malloc(cs->si.length * sizeof(*cs->text));
|
||||
ASSERT(cs->text != NULL);
|
||||
ASSERT_NOT_NULL(cs->text);
|
||||
cs->attributes = (WORD*) malloc(cs->si.length * sizeof(*cs->attributes));
|
||||
ASSERT(cs->attributes != NULL);
|
||||
ASSERT_NOT_NULL(cs->attributes);
|
||||
ASSERT(ReadConsoleOutputCharacter(
|
||||
tty_out->handle, cs->text, cs->si.length, origin, &length));
|
||||
ASSERT((unsigned int) cs->si.length == length);
|
||||
|
Reference in New Issue
Block a user