diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-10-10 22:26:41 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-10-10 22:26:41 +0100 |
commit | fd4afeecb7be4bce7141a883cbfcb878c61af18d (patch) | |
tree | eb2a2b549e5fcd4fa3829fe770d91bdf16912572 | |
parent | 78247fb898a91995475f1dd8fa382b6704e41586 (diff) | |
parent | 3b6c5dc15e2d6d3cd2b3d56efdedb192734c8639 (diff) | |
download | prosody-fd4afeecb7be4bce7141a883cbfcb878c61af18d.tar.gz prosody-fd4afeecb7be4bce7141a883cbfcb878c61af18d.zip |
Merge 0.9->0.10
-rw-r--r-- | util-src/windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/windows.c b/util-src/windows.c index 121cc471..3d14ca95 100644 --- a/util-src/windows.c +++ b/util-src/windows.c @@ -58,7 +58,7 @@ static int Lget_consolecolor(lua_State *L) { 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; |