Mercurial > prosody-hg
diff util-src/windows.c @ 5866:10a16fdebe2c
Merge 0.10->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 10 Oct 2013 22:27:01 +0100 |
| parents | 22b1d18eb919 |
| children | 6c8f6364bc48 |
line wrap: on
line diff
--- a/util-src/windows.c Mon Oct 07 12:56:53 2013 +0200 +++ b/util-src/windows.c Thu Oct 10 22:27:01 2013 +0100 @@ -58,7 +58,7 @@ if (console == INVALID_HANDLE_VALUE) return lerror(L, "GetStdHandle"); if (!GetConsoleScreenBufferInfo(console, &info)) return lerror(L, "GetConsoleScreenBufferInfo"); - if (!ReadConsoleOutputAttribute(console, &color, sizeof(WORD), info.dwCursorPosition, &read_len)) return lerror(L, "ReadConsoleOutputAttribute"); + if (!ReadConsoleOutputAttribute(console, &color, 1, info.dwCursorPosition, &read_len)) return lerror(L, "ReadConsoleOutputAttribute"); lua_pushnumber(L, color); return 1;
