Fixed some small issues in the C code of the Windows port.

This commit is contained in:
Pietro Gagliardi 2014-08-14 16:17:44 -04:00
parent 868161b7f0
commit 307577889e
3 changed files with 2 additions and 3 deletions

View File

@ -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());
}

View File

@ -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;

View File

@ -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
}