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()); } diff --git a/redo/uitask_windows.c b/redo/uitask_windows.c index 9a2aff7..f80b878 100644 --- a/redo/uitask_windows.c +++ b/redo/uitask_windows.c @@ -91,7 +91,6 @@ static LRESULT CALLBACK msgwinproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l DWORD makemsgwin(char **errmsg) { WNDCLASSW wc; - HWND hwnd; ZeroMemory(&wc, sizeof (WNDCLASSW)); wc.lpfnWndProc = msgwinproc; diff --git a/redo/window_windows.c b/redo/window_windows.c index e4ea875..0db16bb 100644 --- a/redo/window_windows.c +++ b/redo/window_windows.c @@ -28,7 +28,7 @@ static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARA default: return DefWindowProcW(hwnd, uMsg, wParam, lParam); } - xmissedmsg("Window", "windowWinProc()", uMsg); + xmissedmsg("Window", "windowWndProc()", uMsg); return 0; // unreached }