From 307577889e3fda28cad8f38ea34c184d9ab4a254 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 14 Aug 2014 16:17:44 -0400 Subject: Fixed some small issues in the C code of the Windows port. --- redo/common_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redo/common_windows.c') diff --git a/redo/common_windows.c b/redo/common_windows.c index 53f2b3e..153aa76 100644 --- a/redo/common_windows.c +++ b/redo/common_windows.c @@ -11,7 +11,7 @@ LRESULT getWindowTextLen(HWND hwnd) void getWindowText(HWND hwnd, WPARAM n, LPWSTR buf) { SetLastError(0); - if (SendMessageW(hwnd, WM_GETTEXT, n + 1, (LPARAM) buf) != n) + if (SendMessageW(hwnd, WM_GETTEXT, n + 1, (LPARAM) buf) != (LRESULT) n) xpanic("WM_GETTEXT did not copy the correct number of characters out", GetLastError()); } -- cgit v1.2.3