Changeset

5865:b10ee87ac76a

Merge 0.9->0.10
author Matthew Wild <mwild1@gmail.com>
date Thu, 10 Oct 2013 22:26:41 +0100
parents 5863:abcbaf7f2e8e (current diff) 5864:22b1d18eb919 (diff)
children 5866:10a16fdebe2c 5867:72d49d1e2d11
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/windows.c	Mon Oct 07 18:02:58 2013 -0400
+++ b/util-src/windows.c	Thu Oct 10 22:26:41 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;