aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-10-10 22:27:01 +0100
committerMatthew Wild <mwild1@gmail.com>2013-10-10 22:27:01 +0100
commite8b3b94f25770dc15f108a4657c67845718b1cde (patch)
tree7ed25791ef2b73508310bd47230d070eaba5c02b /util-src
parent7da00de6e9c6990da97da982a4691213562d6e22 (diff)
parent1a9c14818811c0301635ed7218959dec229eaccd (diff)
downloadprosody-e8b3b94f25770dc15f108a4657c67845718b1cde.tar.gz
prosody-e8b3b94f25770dc15f108a4657c67845718b1cde.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src')
-rw-r--r--util-src/windows.c2
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;