diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-14 16:17:44 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-14 16:17:44 -0400 |
| commit | 307577889e3fda28cad8f38ea34c184d9ab4a254 (patch) | |
| tree | 2edee00f8a3cd152194599f3d0b850080519564a /redo/common_windows.c | |
| parent | 868161b7f0f5de708f242aaf82a3165edbaa22e8 (diff) | |
Fixed some small issues in the C code of the Windows port.
Diffstat (limited to 'redo/common_windows.c')
| -rw-r--r-- | redo/common_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |
